PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.databases.mysql > Reading InnoDB code, needs assistance
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Reading InnoDB code, needs assistance

Réponse
 
LinkBack Outils de la discussion
Vieux 01/04/2008, 05h39   #1
Sune
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Reading InnoDB code, needs assistance

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
  Réponse avec citation
Vieux 01/04/2008, 09h50   #2
Axel Schwenke
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Reading InnoDB code, needs assistance

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/
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h57.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10745 seconds with 10 queries