Now instead of having a hardcoded buffer size, we can specify one from the command line (we still have a much larger default buffer size of 10MiB).
Also we don't write whatever we read immediately, we try to accumulate the whole buffer worth of data before writing, which makes the process much faster.
Now instead of having a hardcoded buffer size, we can specify one from the command line (we still have a much larger default buffer size of 10MiB).
Also we don't write whatever we read immediately, we try to accumulate the whole buffer worth of data before writing, which makes the process much faster.