Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by SuicideJunkie (Vicar)
on Feb 15, 2017 at 20:11 UTC ( #1182094=note: print w/replies, xml ) Need Help??


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"?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1182094]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2021-02-28 20:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?