Skip to content

Reduce memory usage of the context restoration compiled at the end of for loops#4837

Merged
fabpot merged 1 commit into
twigphp:3.xfrom
fabpot:for-loop-speedup
Jun 6, 2026
Merged

Reduce memory usage of the context restoration compiled at the end of for loops#4837
fabpot merged 1 commit into
twigphp:3.xfrom
fabpot:for-loop-speedup

Conversation

@fabpot

@fabpot fabpot commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Refs #4021

I benchmarked the new version and it's 10–15% faster CPU and half the allocations.

@fabpot fabpot merged commit fa33c22 into twigphp:3.x Jun 6, 2026
42 of 43 checks passed
@fabpot fabpot deleted the for-loop-speedup branch June 6, 2026 08:56
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