On 6/12/2010 11:03 PM, Xi Yang wrote:
I'm trying to use use Perl 6 to process some nucleotide sequences. However, I
found it strangely slow on substr or string concat operations, compared with
its Perl 5 equivalent.
Part of this is that perl6 reads files in utf8 by default, and
operations like substr are just plain slow on utf8 strings. I've been
using something like this as a workaround:
use MONKEY_TYPING;
augment class IO {
multi method encoding($enc) {
$!PIO.encoding($enc);
}
}
my $io = open( ... );
$io.encoding('fixed_8');