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

[email protected] (mehmetcansahin)
Newsgroups php.git-pulls
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.