-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid creating identical parsers (DM-45844)
Building parsers is expensive, now `ParserYacc` keeps a cache of parsers, there is one parser created per combination of keyword parameters. In reality there will be just one parser because we do not pass any non-default parameters to constructor. This makes repeated construction or `ParserYacc` significantly faster, timing shows reduction from 6.6 sec to 0.3 msec per 1000 instantiations.
- Loading branch information
Showing
2 changed files
with
55 additions
and
75 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