Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Rosetta Code: Long List is Long -- Python

by marioroy (Prior)
on Dec 09, 2022 at 12:01 UTC ( [id://11148685]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ python3 llil.py big1.txt big2.txt big3.txt > out1.txt
    collect time            :    5.2 s
    ...
    total processing time   :   22.9 s
    output time             :    3.5 s
    total time              :   26.4 s
    
  2. or download this
    # Install pyston_lite_autoload to ~/.local/lib/python3.10/site-package
    +s/.
    $ python3 -m pip install --user pyston_lite_autoload
    ...
    total processing time   :   20.2 s
    output time             :    3.2 s
    total time              :   23.4 s
    
  3. or download this
    $ diff llil.py llil2.py 
    53c53
    ...
    < def sort_via_cmp_to_key( cat_count :dict[ str, int ] ) ->list[ str ]
    +:
    ---
    > def sort_via_cmp_to_key( cat_count :dict ) ->list:
    
  4. or download this
    $ ./pyston_2.3.5/bin/pyston3 llil2.py big1.txt big2.txt big3.txt > out
    +3.txt
    collect time            :    3.7 s
    ...
    total processing time   :   15.9 s
    output time             :    3.0 s
    total time              :   18.8 s
    
  5. or download this
    $ perl dualvar.pl big1.txt big2.txt big3.txt >out4.txt
    start
    get properties: 6 secs
    sort + output: 16 secs
    total: 22 secs
    

Log In?
Username:
Password:

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

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

    No recent polls found