Create a bitstring class that supports lazy evaluation.
UPDATE: Loop using substr
my $blocksize = 1000000; my $lb = length $bin; my $offset = 0; while( $offset < $lb ) { substr $bin, $offset, $blocksize, ~substr( $bin, $offset, $blocksize + ); $offset += $blocksize; }
Too slow as well?
In reply to Re: In-place bitwise NOT?
by hdb
in thread In-place bitwise NOT?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |