Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: how can I speed up this perl??

by TomDLux (Vicar)
on Nov 24, 2003 at 20:33 UTC ( [id://309668]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ( $prev, %pairs );
    map { $pairs{ $prev . $_}++; $prev = $_; } @genome;
    delete $pairs{a}, $pairs{c}, $pairs{t}, $pairs{g};
    
  2. or download this
    my ( $prev, %pairs );
    for ( @genome ) {
    ...
        $prev = $_; 
    };
    delete $pairs{a}, $pairs{c}, $pairs{t}, $pairs{g};
    

Log In?
Username:
Password:

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

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

    No recent polls found