26 May
2008
26 May
'08
7:39 p.m.
On Mon, May 26, 2008 at 05:01:34PM +0200, Johannes Hofmann wrote:
On the very long mysql page, addWord is called 1192256 times. But due to the allocation in 2^n steps in SimpleVector memory for some more of them could be allocated structs on 32bit systems are 8 byte aligned. struct Word with
Argh, structs are 4byte aligned of course!
On most sane architectures a structshave the same alignment as the strictest type in it. There's one important exception -- ARM, where the minimal alignment is 16 Byte (IIRC). Joerg