psmay / windows-named-pipe-utils

Windows commands for interfacing named pipes with stdio streams.
23 stars 4 forks source link

Buffer improvements for speed #1

Open nicolas-comerci opened 2 years ago

nicolas-comerci commented 2 years ago

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.