logo separator

[mkgmap-dev] [PATCH v1] make DP filter avoid removing pointslocated at nodes

From Johann Gail johann.gail at gmx.de on Mon Nov 23 20:21:26 GMT 2009

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:

johann at 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?


More information about the mkgmap-dev mailing list