jupyter-xeus / cpp-terminal

C++ library for writing multiplatform terminal applications
https://jupyter-xeus.github.io/cpp-terminal/
Other
473 stars 51 forks source link

improve the rendering performance #186

Open MCWertGaming opened 1 year ago

MCWertGaming commented 1 year ago

We should look into ways on improving the printing performance for the windows console. things to look into:

flagarde commented 1 year ago

Maybe we should avoid to use cerr for this purpose at least from the library. The user would maybe (I would ;) ) have a way to detach cerr and send into file or whatever...

But we could try to make cout unbufered by default and add a nice way to turn it on or off depending on the user wishes

For the third option it can be dangerous for a library ( the user would expect ) cstdio and C++ I/O to be synchronised but we could maybe give that option to the user if he knows what are the consequences.