Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How to optimize this code

by betterworld (Curate)
on Sep 10, 2008 at 19:44 UTC ( [id://710449]=note: print w/replies, xml ) Need Help??


in reply to How to optimize this code

my $pixellist = '9347248,9347248,9413041'; my @allpixels = split( /,/ , $pixellist ); my $newblob = reverse pack "(VX)*", reverse @allpixels;

Well, I'm not suggesting that this is faster than the original or that you use it; I just wanted to prove that you can omit the entire for-loop if you make your pack command sufficiently unreadable ;-)

Log In?
Username:
Password:

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

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

    No recent polls found