4 ms·
> it AVOIDS LOOKING AT EVERY INPUT BYTE This would not help, since the backing storage doesn't provide support for this kind of resolution. It would end up rea
by saagarjha 8y ago
> it AVOIDS LOOKING AT EVERY INPUT BYTE
This would not help, since the backing storage doesn't provide support for this kind of resolution. It would end up reading in the entire file anyways, unless your input string is on the order of an actual block.
- pathseeker 8y agoDMA would like a word with you
- BeeOnRope 8y agoSure it would help, not for the IO part, but the CPU-bound part of actually checking each character, which is apparently a much lower bound in this case.
- saagarjha 8y agoYeah, that's why the article talks about decreasing the amount of CPU work. From the context of disk IO though (which is what this thread seems to be about) this can't help.