[issue19160] Inconsistent size for GIL release in hashlib

2013-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset bfebfadfc4aa by Jesus Cea in branch '3.3': Close #19160: Inconsistent size for GIL release in hashlib http://hg.python.org/cpython/rev/bfebfadfc4aa New changeset 989ea05b2500 by Jesus Cea in branch 'default': MERGE: Close #19160: Inconsistent size f

[issue19160] Inconsistent size for GIL release in hashlib

2013-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 310c26df3234 by Jesus Cea in branch '3.3': Close #19160: Inconsistent size for GIL release in hashlib http://hg.python.org/cpython/rev/310c26df3234 New changeset 9503097ce1b7 by Jesus Cea in branch 'default': MERGE: Close #19160: Inconsistent size f

[issue19160] Inconsistent size for GIL release in hashlib

2013-10-03 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: 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,

[issue19160] Inconsistent size for GIL release in hashlib

2013-10-03 Thread Berker Peksag
Berker Peksag added the comment: It looks like it is 2048: http://hg.python.org/cpython/rev/f9f5d9047a05/ See also issue 4751. -- nosy: +berker.peksag ___ Python tracker ___ ___

[issue19160] Inconsistent size for GIL release in hashlib

2013-10-03 Thread Jesús Cea Avión
New submission from Jesús Cea Avión: In http://docs.python.org/3.3/library/hashlib.html there is a contradiction: """ For better multithreading performance, the Python GIL is released for strings of more than 2047 bytes at object creation or on update. [...] Changed in version 3.1: The Python