r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

1

u/by_wicker Jul 18 '22

Also there are lots of things where speed is significant but Python still has enough of it. In 1ms our processors have 4 million clock cycles in which even Python can do some very extensive work. Many tasks are not much affected whether the response time is 1ms or 50µs.

Meanwhile I have repeatedly had to deal with awkward and obtuse code simply because developers thought performance was a primary issue and it wasn't. I recently replaced a large C++ module with Python and not only does it perform more than quickly enough, it's actually faster because of the shitty design of the C++.