Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use iso-8859-1 (fixed-width) instead of utf8 for parsing when we can.
This improves the "make spectest" performance by about 13%.
  • Loading branch information
pmichaud committed May 31, 2009
1 parent 764684b commit 50ec44e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/PARROT_REVISION
@@ -1 +1 @@
39258
39288
2 changes: 1 addition & 1 deletion perl6.pir
Expand Up @@ -354,7 +354,7 @@ to the Perl 6 compiler.
not_harness:

$P0 = compreg 'perl6'
$P1 = $P0.'command_line'(args_str, 'encoding'=>'utf8', 'transcode'=>'ascii')
$P1 = $P0.'command_line'(args_str, 'encoding'=>'utf8', 'transcode'=>'ascii iso-8859-1')

.include 'iterator.pasm'
.local pmc iter
Expand Down
2 changes: 1 addition & 1 deletion src/builtins/eval.pir
Expand Up @@ -39,7 +39,7 @@ itself can be found in src/builtins/control.pir.
.local pmc compiler
compiler = compreg lang
# XXX FIXME: We should allow the compiler to choose default encoding/transcode
.tailcall compiler.'evalfiles'(filename, 'encoding'=>'utf8', 'transcode'=>'ascii')
.tailcall compiler.'evalfiles'(filename, 'encoding'=>'utf8', 'transcode'=>'ascii iso-8859-1')

lang_parrot:
## load_bytecode currently doesn't accept non-ascii filenames (TT #65)
Expand Down

0 comments on commit 50ec44e

Please sign in to comment.