Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Implement new @*INC handling
This reduces bare startup time by about 30% (.23 to .16 on my machine), and running a spectest from 240 to 215 wallclock (1620 to 1435 CPU), again on my machine. List of features: - @*INC / %*CUSTOM_LIB only contain strings, never any (other) object - the separator between paths is now "," - the separator between include path specification is now "#" - all module loading code is now threadsafe (afaics) - added RAKUDO_MODULE_DEBUG helper sub for module loading diag info - added DISTRO.cur-sep to help with migration from older panda's - adapted parse-include-spec sanity testing We should now be ready to making 'use lib' a pragma and truly lexical.
- Loading branch information
Showing
7 changed files
with
172 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| module lib { }; | ||
| my sub EXPORT(*@a) { | ||
| @*INC.unshift: @a.map( { CompUnitRepo::Local::File.new($_) } ); | ||
| @*INC.unshift: PARSE-INCLUDE-SPECS(@a.join(',')); | ||
| return ().hash; | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.