-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pseudo] Store last node popped in the queue, not its parent(s). NFC
We have to walk up to the last node to find the start token, but no need to go even one node further. This is one node fewer to store, but more importantly if the last node happens to have multiple parents we avoid storing the sequence multiple times. This saves ~5% on glrParse. Based on a comment by hokein@ on https://reviews.llvm.org/D128307
- Loading branch information
1 parent
c078e46
commit 466eae6
Showing
1 changed file
with
14 additions
and
11 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