diff options
author | Dmitry Stogov <dmitry@zend.com> | 2018-03-23 00:13:45 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2018-03-23 00:13:45 +0300 |
commit | a795bd82651e61d05b96a3efca2042308a3af451 (patch) | |
tree | 58c359f9bebd2aa5a7443f23b663f9d221483dd7 /ext/standard/hrtime.c | |
parent | 8598240c69801479cef134bac29b12c233aca075 (diff) | |
download | php-git-a795bd82651e61d05b96a3efca2042308a3af451.tar.gz |
Optimize zend_hash_real_init()
Diffstat (limited to 'ext/standard/hrtime.c')
-rw-r--r-- | ext/standard/hrtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/hrtime.c b/ext/standard/hrtime.c index c32aef4e1a..3da1c41ba5 100644 --- a/ext/standard/hrtime.c +++ b/ext/standard/hrtime.c @@ -180,7 +180,7 @@ PHP_FUNCTION(hrtime) PHP_RETURN_HRTIME(t); } else { array_init_size(return_value, 2); - zend_hash_real_init(Z_ARRVAL_P(return_value), 1); + zend_hash_real_init_packed(Z_ARRVAL_P(return_value)); add_next_index_long(return_value, (zend_long)(t / (php_hrtime_t)NANO_IN_SEC)); add_next_index_long(return_value, (zend_long)(t % (php_hrtime_t)NANO_IN_SEC)); } |