Re:Yes, PHP is faster than C#
by goaty_tyaotg on Friday March 18, 2022 @05:18AM
(#30720054)
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...
where I implemented a counter with SIMD and get a 10-fold performance increase.
[ Parent
| on HN ]
Re:Yes, PHP is faster than C#
by withinboredom on Friday March 18, 2022 @06:24AM
(#30720414)
Here's the latest optimization to that func: https://github.com/php/php-src/commit/085b360abb622abc18b955...
In the latest addendum on the blog post, I ended up removing the counting of 1s.