XP is just a number | |
PerlMonks |
Re: Rewrite Program Using Arraysby JavaFan (Canon) |
on Mar 25, 2012 at 16:39 UTC ( [id://961507]=note: print w/replies, xml ) | Need Help?? |
So I want to make this faster.Then don't sort. Really. The rest of your program is essentially linear. Sorting is N log N. That's the bottleneck of your program. Any speedup you'll do in the rest of the program are pointless if your data size increases: the sort will dominate.
In Section
Seekers of Perl Wisdom
|
|