Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache the evaluation of ParseInputLazyPath.path() for a moderate perf…
… improvement (#2137) * Cache the evaluation of ParseInputLazyPath.path() A ParseInput's path may be evaluated multiple times, so caching the evaluation result avoids some extra array allocations. Around a 10% speedup on 'realworld'. * Simplify * Revert "Simplify" This reverts commit c1b94a2. --------- Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
- Loading branch information
1 parent
d8e8653
commit 03c0ab1
Showing
3 changed files
with
34 additions
and
14 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
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