From: Aldric Giacomoni Date: 2009-12-17T01:02:24+09:00 Subject: Re: [ANN] google_hash 0.1.1 -- it has a #each! Roger Pack wrote: > Pleased to announce the initial release of a "google_hash" gem. > > > Both these classes are currently more space efficient than a hash, > because they store keys as "native" ints, so the keys no longer affect > GC time, as well as only use 4 bytes instead of 20 (or 8 instead of 40, > on 64 bit). This should release some stress on the GC. In terms of > total memory usage, GoogleHashDense uses more (more buckets), and is > more speedy, and GoogleHashSparse uses less space, and is much more > memory efficient (2 bits per entry, or so I'm told). > > > [1] http://code.google.com/p/google-sparsehash Neat. Does it keep the order in which the elements were entered? Is it sortable? -- Posted via http://www.ruby-forum.com/.