Compilers usually include padding in sizeof(x), precisely so that array allocation will preseve alignment.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-09-19 14:58: Subject: Re: some results on number crunching
Arrays will never ever be padded. Since they are allocated as malloc(sizeof(FOO)*elems).
I just checked with AIDO, the size grows about 40%, as could be expected, since there are some images and strings, but mostly mappings and arrays.
I know of no way to benchmark the speed of aido, though, but if you have booth large floats and integers it will probably be slower, since my CPU lacks native 64bit integers.
/ Per Hedbor ()