[php-src] PR #23809: ext/standard: Optimize result-row construction in array_map() with a null callback

From: Date: Mon, 21 Sep 2026 06:30:23 +0000
Subject: [php-src] PR #23809: ext/standard: Optimize result-row construction in array_map() with a null callback
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-38649@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/23809 Author: LamentXU123 When array_map() receives a null callback and multiple arrays, each result row has a known size and consecutive integer keys. In this case we just init each value once. No regressions intended. | Input | reduction | |---|---:| | 2 arrays × 256 elements | 11.1% | | 4 arrays × 256 elements | 21.1% | | 16 arrays × 256 elements | 41.2% |

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