2 ms·
It's much slower because you are checking the first character in all zeros string, but checking multiple characters in the case that the first ones match using
by lqdc13 11y ago
It's much slower because you are checking the first character in all zeros string, but checking multiple characters in the case that the first ones match using Boyer-Moore.