Skip to content

Commit f88d668

Browse files
authored
gh-153568: Make the parser's per-rule stack check an inline comparison (#153573)
* gh-153568: Make the parser's per-rule stack check an inline comparison The parser now caches the thread state and stack limit up front and only falls back to the full check when the stack is nearly exhausted. * fixup! gh-153568: Make the parser's per-rule stack check an inline comparison * fixup! gh-153568: Make the parser's per-rule stack check an inline comparison
1 parent ac86e12 commit f88d668

5 files changed

Lines changed: 505 additions & 470 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Speed up the parser by turning its per-rule C-stack check into a single
2+
inline comparison.

0 commit comments

Comments
 (0)