in reply to Re^2: Unpacking and converting
in thread Unpacking and converting
Results speak for themselves:cmpthese -1,{ d => q[ my @d = '0001' .. '1000'; ], c => q[ my @c = '0001' .. '1000'; $c[ $_ ] += 0 for 0 .. $#c; ], a => q[ my @a = '0001' .. '1000'; $_ += 0 for @a; ], b => q[ my @b = '0001' .. '1000'; my @new; push @new, $_ + 0 while + defined( $_ = shift @b ) ], };
Rate b c a d b 1267/s -- -29% -37% -63% c 1794/s 42% -- -10% -47% a 2000/s 58% 11% -- -41% d 3413/s 169% 90% 71% --
Regards,
Alex.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Unpacking and converting
by andal (Hermit) on Feb 16, 2011 at 10:39 UTC | |
by BrowserUk (Patriarch) on Feb 16, 2011 at 15:51 UTC | |
by dwalin (Monk) on Feb 16, 2011 at 14:01 UTC | |
|
Re^4: Unpacking and converting
by Anonyrnous Monk (Hermit) on Feb 16, 2011 at 10:26 UTC |