Why one big read beats a thousand small ones
Reading a file one byte at a time with a system call per byte is dramatically slower than reading it in large blocks, even though the same bytes are moved.
What is the dominant cost?
Reading a file one byte at a time with a system call per byte is dramatically slower than reading it in large blocks, even though the same bytes are moved.
What is the dominant cost?