Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Streamline Hash.AT-KEY, jnthn++ for the pointer
With improved inlining we have now, it makes sense to take the capture taking logic out of AT-KEY, so that it can be inlined for the most common case. Capture taking/$!whence setting is now done in a private method !AT-KEY-WHENCE, which also takes care of the case where there was no $!storage allocated yet. Makes Hash.AT-KEY about 1.7x faster for the common case of looking up an existing Str:D key.
- Loading branch information
Showing
1 changed file
with
23 additions
and
46 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