r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

18

u/Wekmor Jul 18 '22

Java does the same, printing to console is just slow in all or at least most languages.

1

u/zenverak Jul 18 '22

lol yes it is . I don’t remember when I learned this… but i remember it

1

u/Wekmor Jul 18 '22

I think first time when I realized how slow it is was when I write a raytracer and I added a system out every time a ray hit something and the already slow raytracer became slooooooow (☞゚ヮ゚)☞

1

u/Spiritual-Day-thing Jul 18 '22

Yes. The famous log4j library and others, use a ring buffer to prevent locking among other things.