That makes sense. For a 16MB file the script is only doing 1000 reads at 16K each. If each read is only reading one extra block and that extra block is always the consecutive one it probably should make only a small difference to the run time. Anyway, thanks for the clarification - thought I must have missed some clever trick.
In reply to Re^4: Count byte/character occurrence (1/4)
by hippo
in thread Count byte/character occurrence (quickly)
by james28909
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |