[Mono-devel-list] [PATCH] Field Layout Optimization
Ben Maurer
bmaurer at users.sourceforge.net
Sun Mar 14 19:06:16 EST 2004
On Sun, 2004-03-14 at 18:51, Torstensson, Patrik wrote:
> Have you tested performance with the new field layout?
mcs bootstrap is 1-2% faster.
>
> If I get this correctly you put two bools together, right? So it's
> ac...... Or?
Yes, that is correct.
>
> Remember that there is penalties for reading memory that is not dword
> aligned, so performance will probably be affected by your patch.
Didn't seem to be. Note that C uses this alignment, and from a little
test with MS.net (reading a struct with a pointer), they do that too.
> Don't
> see why padding is 8 bytes but what do I know.. :-)
The long gets aligned on an 8 byte boundry.
However, you know more than I do in this area, so i would love some more
input ;-).
-- Ben
More information about the Mono-devel-list
mailing list