Process input from a reader (for stdin).
Uses batch reading: reads large chunks (16MB), then processes them in batch
using the fast mmap-based paths, avoiding per-line read_until syscall overhead.
16MB chunks mean a 10MB piped input is consumed in a single batch.