From: ara.t.howard@... Date: 2006-10-19T00:09:24+09:00 Subject: Re: Performance of ruby hashes On Wed, 18 Oct 2006, Tomasz Wegrzanowski wrote: > On 10/18/06, unni.tallman wrote: >> Anyway to enhance the performance of ruby hashes? My program uses >> hashes heavily. So if i could enhance hash performance, or find a >> fasster alternative to hashes, i could improve the overall performance >> of my program. Gimme some suggestions. > > Indexing them by symbols instead of strings helps a bit. > But hashes are so fast that it's hard to even make a meaningful > benchmark. For example in the following meaningless benchmark > symbol-hashes are faster than string-hashes: bad idea for big hashes - symbols are never gc'd and swapping is never fast! ;-) -a -- my religion is very simple. my religion is kindness. -- the dalai lama