This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/PropertyInfo
Fabien Potencier 248aff57d0 minor #30525 [PropertyInfo] Use a single cache item per method (deviantintegral)
This PR was merged into the 4.3-dev branch.

Discussion
----------

[PropertyInfo] Use a single cache item per method

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #29977
| License       | MIT
| Doc PR        | none

Replaces https://github.com/symfony/symfony/pull/30523 with a rebase to master.

This PR changes how property metadata is cached, significantly reducing the number of calls made between PHP and the backend cache. Instead of storing one cache item per method and set of arguments, a single cache item is stored per method. This matches well with real-world use, where most properties in an object will need to be inspected.

Note that the absolute numbers in the above PR are best case. In production environments where memcache is on a remote server, we were seeing multiple seconds consumed by memcache calls.

Commits
-------

2a4f8a11d4 [PropertyInfo] Use a single cache item per method
2019-04-03 13:59:42 +02:00
..
DependencyInjection [PropertyInfo] fix BC break in PropertyInfoPass 2018-09-05 11:02:25 +02:00
Extractor [PropertyInfo] Add possibility to extract private and protected properties in reflection extractor 2019-03-27 07:41:42 +01:00
Tests [PropertyInfo] Add possibility to extract private and protected properties in reflection extractor 2019-03-27 07:41:42 +01:00
Util Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
CHANGELOG.md Add missing changelog for private / protected 2019-03-27 14:33:41 +01:00
composer.json updated version to 4.3 2018-11-26 17:19:01 +01:00
LICENSE update year in license files 2019-01-01 14:45:19 +01:00
phpunit.xml.dist Bump phpunit XSD version to 5.2 2018-11-11 12:18:13 +01:00
PropertyAccessExtractorInterface.php switched array() to [] 2019-01-16 10:39:14 +01:00
PropertyDescriptionExtractorInterface.php switched array() to [] 2019-01-16 10:39:14 +01:00
PropertyInfoCacheExtractor.php [PropertyInfo] Use a single cache item per method 2019-03-11 16:31:39 -04:00
PropertyInfoExtractor.php fixed CS 2019-01-16 21:35:37 +01:00
PropertyInfoExtractorInterface.php [PropertyInfo] Import the component 2015-09-26 09:46:20 +02:00
PropertyInitializableExtractorInterface.php fixed CS 2019-01-16 21:35:37 +01:00
PropertyListExtractorInterface.php switched array() to [] 2019-01-16 10:39:14 +01:00
PropertyTypeExtractorInterface.php switched array() to [] 2019-01-16 10:39:14 +01:00
README.md [2.8] update readme files for new components 2016-03-07 11:26:54 +01:00
Type.php Merge branch '3.4' into 4.1 2019-01-16 19:21:11 +01:00

PropertyInfo Component

PropertyInfo extracts information about PHP class' properties using metadata of popular sources.

Resources