good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Array Sortby ikegami (Patriarch) |
on May 10, 2011 at 19:10 UTC ( [id://904018]=note: print w/replies, xml ) | Need Help?? |
I think you might find this application of ST will actually slow down the sort. As you said, it helps if the key is expensive to computer.
You also said ST is more likely to help for long lists, but that's not true. It loses effectiveness as the list grows.
In Section
Seekers of Perl Wisdom
|
|