[php-src] PR #23019: Optimize array_intersect() for integer and string values

From: Date: Tue, 04 Aug 2026 11:29:18 +0000
Subject: [php-src] PR #23019: Optimize array_intersect() for integer and string values
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-37491@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/23019 Author: mehmetcansahin Adds a hash-based fast path to array_intersect() when all input values are integers or strings, while preserving existing behavior and falling back to the generic implementation for other value types. Local benchmarks show supported inputs running between 4.9x and 111.8x faster, with approximately 1.3% to 1.8% overhead in the measured fallback cases.

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