Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re (tilly) 2: optimizing code - need help

by tilly (Archbishop)
on Jan 19, 2001 at 22:36 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2022-09-27 16:29 GMT
Find Nodes?
    Voting Booth?
    I prefer my indexes to start at:

    Results (122 votes). Check out past polls.