$s = time; $out1 = chr(0) x 2e6; substr($out1, $_ * 2, 1, substr($buf, $_, 1)) for 0..1e6; print time() - $s, "\n";
In reply to Re: Interleaving bytes in a string quickly
by salva
in thread Interleaving bytes in a string quickly
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |