|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
I'm browsing the code of InnoDB and I try to figure out how it handles C alignment issues. I have walked the web tours and more but I'm still not able to find the spot where data is actually stored and read from a page in memory. Here would also be the place where the issue is met. Is memcpy used? Are data types properly positioned (aligned) in the data page? The first seems wasteful in terms of CPU cycles, the latter seems wasteful from a space perspective... Does anyone know this, or can someone point me to a point in the code where this can be read? Thanks /Sune |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Sune <sune_ahlgren@hotmail.com> wrote:
> > I'm browsing the code of InnoDB and I try to figure out how it handles > C alignment issues. I have walked the web tours and more but I'm still > not able to find the spot where data is actually stored and read from > a page in memory. Here would also be the place where the issue is met. Try row0mysql.c and row0sel.c Note that there is a common row format that is used above the storage engine level. But I wonder what you expect to find. InnoDB stores data in a architecture-independent manner, in order to make the binary data files compatible on all architectures. This generally disallows to map C data structures to storage directly. XL -- Axel Schwenke, Support Engineer, MySQL AB Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/ MySQL User Forums: http://forums.mysql.com/ |
|
![]() |
| Outils de la discussion | |
|
|