jupyter-xeus / xeus-cling

Jupyter kernel for the C++ programming language
BSD 3-Clause "New" or "Revised" License
3.01k stars 294 forks source link

Slow printing #506

Open JoelSjogren opened 6 months ago

JoelSjogren commented 6 months ago

I am surprised that I can't find this discussed anywhere. As usual in jupyter, when you evaluate a cell that ends with an expression and not ; that value is printed. Why is this slower than std::cout << ... << std::endl;? Takes a whole second just to print an integer. I don't notice this difference in the cling repl.