Skip to content

perf(intl): lazy load catalog fallback#2162

Merged
innocenzi merged 1 commit into
tempestphp:3.xfrom
xHeaven:fix/intl-catalog-lazy-fallback
Jun 5, 2026
Merged

perf(intl): lazy load catalog fallback#2162
innocenzi merged 1 commit into
tempestphp:3.xfrom
xHeaven:fix/intl-catalog-lazy-fallback

Conversation

@xHeaven
Copy link
Copy Markdown
Member

@xHeaven xHeaven commented Jun 5, 2026

The fallback lookup was passed on the default value, so PHP eagerly executed the default route as well, even if the exact translation existed. The new way is about 2.5x faster based on my benchmark.

@innocenzi innocenzi merged commit 70e2df1 into tempestphp:3.x Jun 5, 2026
75 checks passed
@xHeaven xHeaven deleted the fix/intl-catalog-lazy-fallback branch June 5, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants