Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Avoid $*VM initialization at startup.
This shaves around 30ms off CORE.setting loading (under the profiler,
so a bit less in reality - but still very measurable).
  • Loading branch information
jnthn committed Mar 21, 2015
1 parent edb5d9f commit d835c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Inc.pm
Expand Up @@ -94,7 +94,7 @@
}
#?endif

my $prefix := $*VM.prefix ~ '/share/perl6';
my $prefix := nqp::atkey(nqp::backendconfig(), 'prefix') ~ '/share/perl6';
my $abspath := "$prefix/share/libraries.json";
if IO::Path.new-from-absolute-path($abspath).e {
my $config = from-json( slurp $abspath );
Expand Down

0 comments on commit d835c8e

Please sign in to comment.