Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: better array to hash conversion

by perltux (Scribe)
on Dec 11, 2012 at 14:27 UTC ( #1008309=note: print w/replies, xml ) Need Help??


in reply to Re: better array to hash conversion
in thread better array to hash conversion

Many thanks for that. I find it very interesting that the 'for' loop is actually the second fastest solution, faster than the solutions using 'map'.

Replies are listed 'Best First'.
Re^3: better array to hash conversion
by space_monk (Chaplain) on Dec 11, 2012 at 19:34 UTC

    A for solution is generally faster than a map, and it has been discussed in map versus for amongst other places. Sometimes however it is more expressive to use "map".

    A Monk aims to give answers to those who have none, and to learn from those who know more.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008309]
help
Chatterbox?
[Discipulus]: but then discovered a registry trick to do before the physical2virtual migration
[Lady_Aleena]: Sounds like a headache.
[Discipulus]: a bit shaggy.. every atttempt is ~4hours to virtualize and 1-2hours to kick the big file to boot..
[Lady_Aleena]: Ouch...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2017-05-22 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?