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