3 ms·
depends on how much you care about performance/memory usage. for one, variance in the line lengths (by byte count) will probably force the usage of inefficient
by mh- 13y ago
depends on how much you care about performance/memory usage.
for one, variance in the line lengths (by byte count) will probably force the usage of inefficient buffer sizes
also, the parent comment gave one universal example: binary files
- repsilat 13y agoEven with binary files, the only reasonable ways I can think to process them are stream-wise and with mmap. (In fact, why would you ever slurp a file when you can mmap it instead?)