-
-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store Pos/EndPos field index/existence at grammar construction time.
This speeds up parsing by 5-10%: benchmark old ns/op new ns/op delta BenchmarkEBNFParser-12 143589 129605 -9.74% BenchmarkParser-12 395397 375403 -5.06% BenchmarkParticipleThrift-12 202280 191766 -5.20% BenchmarkParser-12 7724639 7114586 -7.90% See #108.
- Loading branch information
1 parent
4f53af9
commit c109e0a
Showing
3 changed files
with
34 additions
and
15 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