Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Which one is best for optimization

by salva (Canon)
on Sep 29, 2008 at 09:50 UTC ( [id://714297]=note: print w/replies, xml ) Need Help??


in reply to Re: Which one is best for optimization
in thread Which one is best for optimization

and the sort algorithm that takes O(n) time in the general case has yet to be invented
Well, but for this particular case, sorting numbers, it has already been invented!, it is called radix sort and there are at least two Perl implementations available from CPAN: Sort::Radix (pure perl) and Sort::Key::Radix (XS).
  • Comment on Re^2: Which one is best for optimization

Replies are listed 'Best First'.
Re^3: Which one is best for optimization
by grinder (Bishop) on Sep 29, 2008 at 15:34 UTC

    The whole point is that you don't need to sort! It's a net loss whichever way you cut it.

    • another intruder with the mooring in the heart of the Perl

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-04-16 06:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found