Menu

#1 Support for multithreading

open
nobody
None
5
2009-04-08
2009-04-08
Anonymous
No

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.

Discussion

  • Nobody/Anonymous

    patch by git

     
  • Johan Brinch

    Johan Brinch - 2009-04-08

    right, i wasn't logged in, but this one is mine ;-)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.