[php-src] PR #17698: Use new ZPP and inline caches in ReflectionProperty::getValue() and variants

From: Date: Tue, 04 Feb 2025 19:18:33 +0000
Subject: [php-src] PR #17698: Use new ZPP and inline caches in ReflectionProperty::getValue() and variants
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-30664@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/17698 Author: arnaud-lb Apply the following changes to ReflectionProperty::getValue(), ::getRawValue(), ::isInitialized(), ::setValue(), ::setRawValue(): - Pass a cache slot to the property handler - Inline the simple case of fetching a declared property - Use the new parameter parsing API This results in decreases in run time from 12% to 59% in [micro benchmarks](https://gist.github.com/arnaud-lb/2de08142dcd0c7b49caed21398f44656): ``` get-value.php: -59% get-value-hook.php: -46% get-value-dyn.php: -52% get-raw-value.php: -56% is-initialized.php: -60% set-value.php: -12% ``` And 1.8% improvements in this Doctrine benchmark: https://github.com/arnaud-lb/symfony-demo/compare/505825290d9f1a50d8ce043bb8b451359de21d24...reflection-property-get-value-opt

« previous php.git-pulls (#30664) next »