Read data from the standard input stream (stdin
) and write it back to the standard output stream (stdout
).
The implementation uses separate threads for reading/writing and an internal ring buffer.
Writing text to the terminal, e.g. by using the printf()
family of functions, can be surprisingly slow – especially on the Windows platform. This means that text output can easily become the performance bottleneck of console application! This is mostly evident for console application that need to output large amounts of text.
As it turns out, passing the text output through and additional ring buffer can greatly improve the performance 😏
Simply pass the output of the source program to the streambuff
utility via pipe operator:
some_program.exe [parameters] | streambuff.exe
Copyright (c) 2023 “dEajL3kA” <[email protected]>
This work has been released under the MIT license. See LICENSE.txt for details!
Using Buffer icons created by Muhammad_Usman – Flaticon.