Just another Perl shrine | |
PerlMonks |
Re: Better mousetrap (getting top N values from list X)by demerphq (Chancellor) |
on Feb 03, 2005 at 07:32 UTC ( [id://427544]=note: print w/replies, xml ) | Need Help?? |
Just thought i should mention that I recall discussion on P5P about optimizing sort when only N values will be used of the return. Assuming that work actually has been done I should think that
Would be the most efficient way to do this. Problem is I really dont remember what the result of that thread was. :-(
--- demerphq
In Section
Seekers of Perl Wisdom
|
|