Skip to content

Commit 85ae80a

Browse files
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 directly
1 parent 64c753e commit 85ae80a

File tree

1 file changed

+87
-62
lines changed

1 file changed

+87
-62
lines changed

0 commit comments

Comments
 (0)