Would it be safe to release the GIL when doing GMP computations?
e.g.: Py_BEGIN_ALLOW_THREADS mpz_mul(r->z, a->z, b->z); Py_END_ALLOW_THREADS
It could give a significant boost to multithreaded, gmp dependend apps.
patch by git
right, i wasn't logged in, but this one is mine ;-)
Log in to post a comment.
patch by git
right, i wasn't logged in, but this one is mine ;-)