Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re (tilly) 2: optimizing code - need help

by tilly (Archbishop)
on Jan 19, 2001 at 22:36 UTC ( [id://53069]=note: print w/replies, xml ) Need Help??


in reply to Re: optimizing code - need help
in thread optimizing code - need help

While that looks nice, be very careful to not use a map that returns multiple entries per input with a long list before 5.6.1 is out. Unfortunately it currently scales quadratically:
%hash = map { $_, $_ } 1..20_000;
If that doesn't make you a believer, s/20/100/ and try again.

This applies to all versions of Perl with map until the upcoming 5.6.1.

Replies are listed 'Best First'.
Re: Re (tilly) 2: optimizing code - need help
by thaigrrl (Monk) on Jan 19, 2001 at 22:53 UTC
    Thanks tilly ! and everyone else. You guys rock! =D

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-03-29 15:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found