5 ms·
I hear this often, and I'd love for this to be true, but python needs it's GIL to be removed for this to be the case. In particular, doing this with reasonable
by ezy 18y ago
I hear this often, and I'd love for this to be true, but python needs it's GIL to be removed for this to be the case. In particular, doing this with reasonable performance in a multi-threaded app (which is most of them these days), is basically impossible.
At the level of one-shot scripts calling C code, or event driven apps where there is an entirely separate C component running in parallel -- it works for the most part. But with the most well-supported versions of python, you cannot have various python/C mixtures running in parallel without a lot of annoying (inefficient) legwork.
It's not a generally suitable solution, unfortunately.