[issue4751] Patch for better thread support in hashlib
ebfe
report at bugs.python.org
Fri Jan 2 11:45:01 CET 2009
ebfe <knabberknusperhaus at yahoo.de> added the comment:
Releasing the GIL is somewhat expensive and should be avoided if
possible. I've moved LEAVE_HASHLIB in EVP_update so the object gets
unlocked before we call Py_END_ALLOW_THREADS. This is *only* possible
because EVP_update does not use the object beyond those lines.
Here is a new patch and a small test-script.
Added file: http://bugs.python.org/file12533/hashopenssl_threads-4.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4751>
_______________________________________
More information about the Python-bugs-list
mailing list