logoalt Hacker News

aranelsurion11/19/20242 repliesview on HN

> Python version is super laggy, something to do with OpenCV

Most probably I'm wrong, but I wonder if it has anything to do with all the text being written to stdout. In the odd chance that it happens on the same thread, it might be blocking.


Replies

ikanreed11/19/2024

Could it then be resolved by using the no-gil version of python they just released?

show 1 reply
reynaldi11/20/2024

Hmm, I couldn't remember if I tried it without the text being written to stdout. But that's an interesting point, I just didn't expect the print() blocking to be significant.