We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a40cdd5 commit 07da2e3Copy full SHA for 07da2e3
Zend/zend_hash.c
@@ -150,6 +150,7 @@ static zend_always_inline void zend_hash_real_init_packed_ex(HashTable *ht)
150
if (UNEXPECTED(GC_FLAGS(ht) & IS_ARRAY_PERSISTENT)) {
151
data = pemalloc(HT_SIZE_EX(ht->nTableSize, HT_MIN_MASK), 1);
152
} else if (EXPECTED(ht->nTableSize == HT_MIN_SIZE)) {
153
+ /* Use specialized API with constant allocation amount for a particularly common case. */
154
data = emalloc(HT_SIZE_EX(HT_MIN_SIZE, HT_MIN_MASK));
155
} else {
156
data = emalloc(HT_SIZE_EX(ht->nTableSize, HT_MIN_MASK));
0 commit comments