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

Re^2: Minimum Hash keys allocated?

by halfcountplus (Hermit)
on Sep 26, 2010 at 18:50 UTC ( #862110=note: print w/replies, xml ) Need Help??


in reply to Re: Minimum Hash keys allocated?
in thread Minimum Hash keys allocated?

In fact, pre-allocating can save some headaches if you know the data structure is going to be a very large one, qv:

mem usage

Pay close attention to what ikegami says in this part:

Re^4: mem usage

As this sort of hack made a very real difference -- it is not simply a matter of setting the number of slots.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://862110]
help
Chatterbox?
[Discipulus]: when I was used to hand writing I reached a very good level, but chars were ~1mm
[LanX]: choroba: another way of gaining XP is up-voting my posts ... (works always!)
[moritz]: works always, one third of the time! :-)
[LanX]: Bah mine are different. Proof otherwise!
[choroba]: Re: Zen and the art of ignoring XP
LanX with a sufficiently large test sample of 1000 votes
[Discipulus]: LanX XP is a game! look at me.. ;=)

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2017-09-26 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (293 votes). Check out past polls.

    Notices?