You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use more compact representation for packed arrays.
Store just an array of zvals without keys.
Because of smaller data set, this patch may show performance improvement
on some apps and benchmarks that use packed arrays. (~1% on PHP-Parser)
The patch has a number of disadvantages:
- sapi/phpdbg needs special support for packed arrays (WATCH_ON_BUCKET).
- ZEND_HASH_FOREACH_* macros became more expensive (bigger and slower),
because they have to support both representations (hash and packed).
CLI PHP became 37KB bigger just because of these macros.
- zend_hash_sort_ex() may require converting packed arrays to hash.
- zend_hash_minmax() prototype was changed to compare only values.
0 commit comments