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
Optimize NQP Match object construction.
Before, CAPHASH built a hash, which we then re-walked and turned into the list and hash needed for the Match object. This meant an extra throwaway Hash and iterator every Match object, as well as the time iterating them. This reduces the cost by eliminating one of the passes. CAPHASH remains since Rakudo's Match construction still needs it; porting the optimization to Rakudo is an exercise for the reader.
- Loading branch information
Showing
1 changed file
with
76 additions
and
16 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