Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Fastest way to sort a list of integers into 0,1,2,3,-3,-2,-1

by Eily (Monsignor)
on Feb 06, 2019 at 09:54 UTC ( [id://1229458]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @list = @input;
    @list = EXPR @list;
    
  2. or download this
    my @list = EXPR @input;
    
  3. or download this
    use warnings;
    use strict;
    use Benchmark 'cmpthese';
    ...
    NoOverwrite     61148/s 208%        39%   7%          --        -12%  
    +          -22%
    Discipulus2     69804/s 252%        59%  23%         14%          --  
    +          -11%
    Splice_FirstIdx 78838/s 297%        80%  38%         29%         13%  
    +            --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (8)
As of 2024-04-23 09:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found