Why read chunks of 8192 Bytes?
- Buffers have to be a power of 2 because otherwise it’s possible to have a misalignment with filesystem blocks provided by operating system (requiring more blocks to be read for each operation, making IO slower)
- 8192 is larger than 4096 which is the default on windows (⇒ performance gain)
- 8192 (8 KiB) provides a good balance between performance and memory usage