Repository navigation
perf(symfony): warm metadata for API resources - #8847
Open
nicolas-grekas wants to merge 5 commits into
Open
nicolas-grekas wants to merge 5 commits into
nicolas-grekas wants to merge 5 commits into
Conversation
nicolas-grekas
added a commit
to symfony/symfony
that referenced
this pull request
Nov 13, 2026
…m tagged providers (nicolas-grekas) This PR was squashed before being merged into the 8.2 branch. Discussion ---------- [PropertyInfo][Serializer][Validator] Warm classes from tagged providers | Q | A | ------------- | --- | Branch? | 8.2 | Bug fix? | no | New feature? | yes | Deprecations? | no | Issues | - | License | MIT Completes #66386. Bundles can tag iterable services to provide classes for PropertyInfo, Serializer, and Validator warmup. The Serializer warmer removes duplicate fallback entries after writing its PHP array. With api-platform/core#8847 on Symfony 8.2, the test app's system pool has 992 files after warmup, down from 14,389 before these warmers. Commits ------- 4f81090 [PropertyInfo][Serializer][Validator] Warm classes from tagged providers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Instead of #8846.
API Platform warms PropertyInfo and default property metadata into PHP arrays. It also supplies resource classes to Symfony's PropertyInfo, Serializer, and Validator warmers. With symfony/symfony#68155 on Symfony 8.2, the test app's system pool falls from 14,389 to 992 files after
cache:warmup. The property warmer saves 2,333 inodes; OpenAPI export still creates 19,996 files for additional metadata keys.