News for hackers. Stuff that matters.
Re:Six times faster than C by teo_zero on Friday July 07, 2023 @01:45AM (#36627684)
But this is not the original problem! Only p's should decrease the counter, in your code every non-s does.
Re:Six times faster than C by utopcell on Friday July 07, 2023 @08:34PM (#36640078)
The original problem was working on strings that only hold 's' and 'p' characters, as seen in bench.c. The first implementation checked against 's' and 'p' specifically, and all subsequent version optimized that first version.