Commit 85ae80a
committed
Reduce memory usage of SplObjectStorage
Track an 8-byte pointer as the key instead of 16-byte zval.
(4 byte on 32-bit builds)
The memory used for a set of 1 million objects decreased from
114 MiB to 106 MiB.
Use the new `Z_PARAM_*` APIs to parse the `zend_object*` pointer directly1 parent 64c753e commit 85ae80a
1 file changed
+87
-62
lines changed
0 commit comments