Quote:
Originally Posted by nevcairiel
Did you open the pipe in binary mode, to avoid any crazy overhead from Windows processing the stream in text mode?
|
It's actually native Win32 code, so I'm using ReadFile() and WriteFile() directly, thus bypassing the C library (and any text/binary conversion) completely.
Anyway, today I create a little
helper application that launches two sub-processes and connects them via pipe. Because, this way, the creation of the pipe is under
my control, I can choose the buffer size.
Turns out that this command, in the Windows command prompt, results in ~1.1 GiB/s:
mkpipe.exe generator.exe "|" native_pv.exe > NUL
(Pipe buffer size was set to 1 MiB)