Skip to content

[perf] Hoist cheap limit-arg guard before scope fetch in preg_split rule - #8709

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-preg-split-limit-guard-hoist
Oct 19, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
tv-preg-split-limit-guard-hoist

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

In NullToStrictIntPregSlitFuncCallLimitArgRector, move the limit argument presence check above the scope fetch. Calls without the limit arg now bail before touching scope, which is the common case.

@TomasVotruba
TomasVotruba merged commit de8d08b into main Oct 19, 2026
48 of 49 checks passed
@TomasVotruba
TomasVotruba deleted the tv-preg-split-limit-guard-hoist branch October 19, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant