in reply to Does "preallocating hash improve performance"? Or "using a hash slice"?

My first thought was: how many million keys did you try adding? I scrolled back up, and it was very few million keys indeed :)

The other thing as noted above, is that if you don't see a difference between two things, you're probably just measuring overhead.

  • Comment on Re: Does "preallocating hash improve performance"? Or "using a hash slice"?