This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jcea
Recipients berker.peksag, docs@python, jcea
Date 2013-10-04.02:12:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1380852769.14.0.547778102851.issue19160@psf.upfronthosting.co.za>
In-reply-to
Content
For extra safety, I just checked the source of 3.4:

"""
#define HASHLIB_GIL_MINSIZE 2048

[...]

if (self->lock == NULL && view.len >= HASHLIB_GIL_MINSIZE) {

[...]

if (view.len >= HASHLIB_GIL_MINSIZE) {

[...]

if (len >= HASHLIB_GIL_MINSIZE) {
"""

So, yes, the GIL is released if len >= 2048 bytes.

BTW, in Python 3.x hashes can't be calculated on strings, but bytes.

I take care of this. Commit in 5 minutes.
History
Date User Action Args
2013-10-04 02:12:49jceasetrecipients: + jcea, docs@python, berker.peksag
2013-10-04 02:12:49jceasetmessageid: <1380852769.14.0.547778102851.issue19160@psf.upfronthosting.co.za>
2013-10-04 02:12:49jcealinkissue19160 messages
2013-10-04 02:12:48jceacreate