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 ebfe
Recipients ebfe, pitrou, vstinner
Date 2008-12-27.00:20:44
SpamBayes Score 1.9010018e-05
Marked as misclassified No
Message-id <1230337247.88.0.869574524229.issue4751@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the advices.

Antoine, maybe you could clarify the situation regarding buffer-locks
for me. In older versions of PEP 3118 the PyBUF_LOCK flag was still
present but it doesn't seem to have made it's way into the final draft.
Is it save to assume that a buffer-view will not change until release()
is called - for all types supporting the buffer protocol in py3k ??

I've done some testing and the overhead of releasing and re-locking the
GIL is definitely a performance problem when trying to hash many small
strings (doubled runtime for 100.000 times b'abc'). I've taken on
haypo's patch to release the GIL only when the buffer is larger than 10kb.
History
Date User Action Args
2008-12-27 00:20:48ebfesetrecipients: + ebfe, pitrou, vstinner
2008-12-27 00:20:47ebfesetmessageid: <1230337247.88.0.869574524229.issue4751@psf.upfronthosting.co.za>
2008-12-27 00:20:47ebfelinkissue4751 messages
2008-12-27 00:20:46ebfecreate