3 ms·
Does anyone know if PHP's "substr_count" function uses SIMD? I did a write-up on this: https://dev.to/goaty92/in-response-to-yes-php-is-faster-than-c-2a2g http
by goaty_tyaotg 5y ago
Does anyone know if PHP's "substr_count" function uses SIMD?
I did a write-up on this: https://dev.to/goaty92/in-response-to-yes-php-is-faster-than-c-2a2g https://dev.to/goaty92/in-response-to-yes-php-is-faster-than...
where I implemented a counter with SIMD and get a 10-fold performance increase.
- withinboredom 5y agoHere's the latest optimization to that func: https://github.com/php/php-src/commit/085b360abb622abc18b955a23cea12f752feea3d https://github.com/php/php-src/commit/085b360abb622abc18b955... In the latest addendum on the blog post, I ended up removing the counting of 1s.