Mark Burton schrieb: >> As the object sizes are rounded to multiples of 8, it >> looks like a case of buy one, and get 7 for free! >> > > Yes, just tried that and the same amount of memory is used for 1 > boolean and 8 booleans. > > Sorry, I cannot confirm this. Out of personal interest I have run your test programm with OpenJDK6 and get following results:
joh...@ubuntu910:~/workspace>java Test Size for LotsOfBooleans: 87978536 Average size: 87.978536 Size for LotsOfInts: 336000000 Average size: 336.0 This means 1Byte/Boolean and 4Bytes/Int plus 8 Byte per Instance of object, as I expected it. Maybe I had to run the vm with a java option? Regards, Johann _______________________________________________ mkgmap-dev mailing list [email protected] http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
