Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: why filling Hash seems slower on unixes than windows ?

by gamache (Friar)
on Jan 03, 2008 at 17:26 UTC ( [id://660256] : note . print w/replies, xml ) Need Help??


in reply to why filling Hash seems slower on unixes than windows ?

Have you tried pre-sizing your hash by using keys in lvalue context?
my %h; keys %h = 80000; ...
This could give you a big performance boost on both platforms.

Replies are listed 'Best First'.
Re^2: why filling Hash seems slower on unixes than windows ?
by vmpilgrim (Initiate) on Jan 05, 2008 at 04:02 UTC
    Yes .. i used this and the performance of hash has increased a lot ...it now takes only 5/6 seconds to fill the hash....Thanks a lot..