Robert Klemme
10/18/2006 1:50:00 PM
On 18.10.2006 14:47, 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.
Hashes *are* pretty fast. Please state what actual performance problem
you have. Otherwise nobody will really be able to help you.
One reason for a slow hash can be a slow hash function or a hash
function that creates badly distributed values. That cannot be
attributed to the Hash implementation but to the implementation of your
hash keys.
robert