Asymmetric Property Write Performance

From: Date: Sun, 12 Jul 2026 23:29:27 +0000
Subject: Asymmetric Property Write Performance
Groups: php.internals 
Request: Send a blank email to internals+get-131876@lists.php.net to get a copy of this message
While digging into the code recently, I found a performance penalty for asymmetric property setters that are not public. In testing, I found that protected and private setters were roughly 4x slower than their public counterparts. Code speaks louder than words, so I drafted a PR that removes the performance penalty. The Summary talks about the implementation details more in depth and how to verify the performance. The change is +226/-65 LOC, so fairly small. It might be worth trying to put this fix into 8.6 yet. https://github.com/php/php-src/pull/22709 Holly

« previous php.internals (#131876) next »