From: Roger Pack Date: 2012-10-12T09:38:00+09:00 Subject: Re: [ANN] google_hash v 0.7.0 released. Faster hashes for MRI. >> RObject is 40 bytes on 64-bit MRI. On the plus side with 64-bit, >> embedded strings can be up to 23 bytes (vs 11 bytes for 32-bit) so >> there's a better chance of avoiding malloc() overhead with strings. > > But we're talking ints here... so they just take up the space of VALUE. I don't know why that's being compared against RObject. I presumed they were encapsulated within an RObject, so would take up as much space, though I suppose they might not be. Anyway it does decrease the time to do a GC from 0.1s to 0.002 with a hash of 2M integers, so that's worth something :) GoogleHashDenseIntToInt "dense" "took" "0.002" "ruby hash" "took" "3.381" "0.103" But by all means, if it doesn't improve your throughput, don't use it :) -roger-