]> granicus.if.org Git - php/commit
Speed up unserializing object properties
authorTyson Andre <tysonandre775@hotmail.com>
Sun, 19 Jan 2020 18:44:13 +0000 (13:44 -0500)
committerTyson Andre <tysonandre775@hotmail.com>
Mon, 20 Jan 2020 14:54:04 +0000 (09:54 -0500)
commit691880b22c1ebdf7b58a25e599d2ba41c72b1dfa
tree826bcf239b0f0555ce83e57d944bc4c2eb406f18
parent0fbdc5a378588846ff1d0f4162af2e83c8578842
Speed up unserializing object properties

Hash table lookups are slow.
Don't do one a second time to update the property.

The call to zend_hash_update_ind goes back to 8b0deb8cd2d

Background: Properties are IS_INDIRECT when they're a declared property,
and point to properties_table.
See https://nikic.github.io/2015/06/19/Internal-value-representation-in-PHP-7-part-2.html#objects-in-php-7
ext/standard/var_unserializer.re