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 ;-)
|
|---|