Skip to content

[perf] Optimize ReplaceHttpServerVarsByServerRector with single map lookup - #8575

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-optimize-http-vars-rename
Oct 10, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
tv-optimize-http-vars-rename

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Resolve the variable name once and do a single map lookup instead of looping the rename map and calling isName() up to 7 times per Variable node.

Same behavior - dynamic variable names ($node->name as Expr) resolve to null and bail out as before.

@TomasVotruba TomasVotruba changed the title Optimize ReplaceHttpServerVarsByServerRector with single map lookup [perf] Optimize ReplaceHttpServerVarsByServerRector with single map lookup Oct 10, 2026
@TomasVotruba
TomasVotruba merged commit d28c578 into main Oct 10, 2026
50 checks passed
@TomasVotruba
TomasVotruba deleted the tv-optimize-http-vars-rename branch October 10, 2026 08:35
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