]> granicus.if.org Git - php/commit
Increase array_rand() rehashing treshold
authorNikita Popov <nikic@php.net>
Mon, 18 Jul 2016 21:40:07 +0000 (23:40 +0200)
committerNikita Popov <nikic@php.net>
Mon, 18 Jul 2016 21:42:07 +0000 (23:42 +0200)
commitd91e2e47d4cd68b2d9978181a36d5c304f61eb51
tree05ef33ce6422f0f2ec76f86b0c462d6458dd2bdc
parent7f3375d5f28b1447ccc659e9867d67cf3bb86ba7
Increase array_rand() rehashing treshold

From 3/8 to 3/4. I was thinking in terms of nTableSize, where a
requirement > 1/2 is not tenable. However, we're actually working
with nNumUsed, in which case more than 1/4 tombstones should be
quite unusual.
ext/standard/array.c