-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Memoizing
DocBlock#requirements()
so that repeated calls do not lea…
…d to overhead Parsing requirements on docblocks seems to be repeated multiple times, so we need to prevent this from being performed more than necessary. The regular expressions around this are quite complex, and therefore there is a performance impact (~2% total runtime on an IO-free test suite).
- Loading branch information
1 parent
2abea0e
commit fe308f3
Showing
1 changed file
with
22 additions
and
2 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