Hacker News new | ask | show | jobs
by masklinn 4619 days ago
> To find an index of a substring you need to scan the string, right. But once you have the byte index you can quickly jump to its position in the string

Stop doing that and just get the bit of string you want in the first place?