-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Performance Benchmarking
php_phongo_is_array_or_document() iterates through array keys to differentiate between list and associative arrays.
PHP 8.1 introduced a zend_array_is_list() function (php/php-src#6070), which has several performance improvements. We should consider using that function (backporting if necessary) or incorporating some its optimizations.
- depends on
-
PHPC-2343 Require PHP 8.1
- Closed
- is related to
-
PHPLIB-1123 Utilize array_is_list() where we currently detect packed arrays
- Closed