[issue31653] Don't release the GIL if we can acquire a multiprocessing semaphore immediately

2017-10-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 828ca59208af0b1b52a328676c5cc0c5e2e999b0 by Victor Stinner in branch 'master': bpo-31653: Remove deadcode in semlock_acquire() (#4091) https://github.com/python/cpython/commit/828ca59208af0b1b52a328676c5cc0c5e2e999b0

[issue31653] Don't release the GIL if we can acquire a multiprocessing semaphore immediately

2017-10-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4061 ___ Python tracker ___ ___

[issue31653] Don't release the GIL if we can acquire a multiprocessing semaphore immediately

2017-10-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset c872d39d324cd6f1a71b73e10406bbaed192d35f by Antoine Pitrou in branch 'master': bpo-31653: Don't release the GIL if we can acquire a multiprocessing semaphore immediately (#4078)

[issue31653] Don't release the GIL if we can acquire a multiprocessing semaphore immediately

2017-10-22 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31653] Don't release the GIL if we can acquire a multiprocessing semaphore immediately

2017-10-22 Thread Antoine Pitrou
Change by Antoine Pitrou : -- keywords: +patch pull_requests: +4048 stage: needs patch -> patch review ___ Python tracker ___

[issue31653] Don't release the GIL if we can acquire a multiprocessing semaphore immediately

2017-10-01 Thread Antoine Pitrou
Change by Antoine Pitrou : -- type: enhancement -> performance ___ Python tracker ___ ___

[issue31653] Don't release the GIL if we can acquire a multiprocessing semaphore immediately

2017-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks reasonable to me. Do you want to provide a patch Daniel? -- components: +Extension Modules -Library (Lib) keywords: +easy (C) nosy: +davin, pitrou, serhiy.storchaka stage: -> needs patch type: -> enhancement

[issue31653] Don't release the GIL if we can acquire a multiprocessing semaphore immediately

2017-09-30 Thread Daniel Colascione
New submission from Daniel Colascione : Right now, the main loop in semlock_acquire looks like this: do { Py_BEGIN_ALLOW_THREADS if (blocking && timeout_obj == Py_None) res = sem_wait(self->handle); else if (!blocking) res =