in reply to Using keys to increase hash efficiency
Tried it using the rand idea, but after 100000 repetitions it had only alocated 20469/32768 buckets and the benchmarks weren't different at all... Also tried even more keys, but started getting (Out of memory) errors. :-) Thanks for the responsesBenchmark: timing 10 iterations of with, without... with: 17 wallclock secs (13.56 usr + 0.24 sys = 13.80 CPU) @ 0 +.72/s (n=10) without: 17 wallclock secs (15.34 usr + 0.02 sys = 15.36 CPU) @ 0 +.65/s (n=10)
|
|---|