[php-src] PR #25874: Zend: Accumulate parsed integer locally in _zend_handle_numeric_str_ex()

From: Date: Sat, 28 Nov 2026 15:26:20 +0000
Subject: [php-src] PR #25874: Zend: Accumulate parsed integer locally in _zend_handle_numeric_str_ex()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-41159@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25874 Author: iliaal _zend_handle_numeric_str_ex() updates *idx on every digit, and because key is a const char * that may alias it, GCC loads and stores *idx on each iteration. Accumulating into a local and storing once at the end removes both from the loop; on ARM64 (Neoverse-N1, GCC 13.3, -O2) a numeric-string key insert and lookup microbenchmark runs about 11% faster.

« previous php.git-pulls (#41159) next »