68737ebbf3
This PR was merged into the 3.2-dev branch.
Discussion
----------
[FrameworkBundle] Introduce a cache warmer for Validator based on PhpArrayAdapter
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | yes
| Tests pass? | -
| Fixed tickets | -
| License | MIT
| Doc PR | -
Following the cache warmer for annotations PR (https://github.com/symfony/symfony/pull/18533), this PR introduces a cache warmer for YAML and XML Validator configuration.
Based on the PhpArrayAdapter, it uses the naming conventions (`Resources/config/validation`) to find the files and compile them into a single PHP file stored in the cache directory. This file uses shared memory on PHP 7.
The benefit of this PR are the same than the ones of the annotations PR:
- validation configuration can be warmed up offline
- on PHP 7, there is no need for user extension to get maximum performances (ie. if you use this PR and the other one, you probably won't need to enable APCu to have great performances)
- on PHP 7 again, we are not sensitive to APCu memory fragmentation
- last but not least, global performance is slightly better (I get 30us per class gain in Blackfire)
This PR also deprecates the framework.validator.cache key in favor of the cache pool introduced in https://github.com/symfony/symfony/pull/18544.
Commits
-------
|
||
---|---|---|
.. | ||
schema | ||
annotations.xml | ||
assets.xml | ||
cache.xml | ||
collectors.xml | ||
debug_prod.xml | ||
debug.xml | ||
esi.xml | ||
form_csrf.xml | ||
form_debug.xml | ||
form.xml | ||
fragment_listener.xml | ||
fragment_renderer.xml | ||
profiling.xml | ||
property_access.xml | ||
property_info.xml | ||
request.xml | ||
router_dev.php | ||
router_prod.php | ||
router_test.php | ||
routing.xml | ||
security_csrf.xml | ||
serializer.xml | ||
services.xml | ||
session.xml | ||
ssi.xml | ||
templating_debug.xml | ||
templating_php.xml | ||
templating.xml | ||
test.xml | ||
translation_debug.xml | ||
translation.xml | ||
validator.xml | ||
web.xml | ||
workflow.xml |