3 ms·
> 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
by aranelsurion 2y ago
> 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.
- ikanreed 2y agoCould it then be resolved by using the no-gil version of python they just released?
- mananaysiempre 2y agoI’m not sure what your reasoning is, but note that blocking I/O including print() releases the GIL. (So your seemingly innocent debugging print can be extremely not harmless under the wrong circumstances.)
- reynaldi 2y agoHmm, 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.