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.

Title: Optimize asyncio.Lock
Type: enhancement Stage: resolved
Components: asyncio Versions: Python 3.9, Python 3.8
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ZackerySpytz, asvetlov, miss-islington, yselivanov
Priority: normal Keywords: patch

Created on 2018-09-21 15:54 by yselivanov, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 13834 merged ZackerySpytz, 2019-06-05 05:48
PR 13837 merged miss-islington, 2019-06-05 09:33
Messages (4)
msg325997 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2018-09-21 15:54
There's no point in always creating a deque() for waiters in Lock.__init__.  Not all locks end up using waiters.
msg344690 - (view) Author: miss-islington (miss-islington) Date: 2019-06-05 09:33
New changeset 9aa78566fbeeb8cdaa669ad22f92cf63765f4135 by Miss Islington (bot) (Zackery Spytz) in branch 'master':
bpo-34767: Do not always create a collections.deque() in asyncio.Lock() (GH-13834)
msg344695 - (view) Author: miss-islington (miss-islington) Date: 2019-06-05 10:17
New changeset 87a865ec15fa899a1f12be81f41a4c5e649a2833 by Miss Islington (bot) in branch '3.8':
bpo-34767: Do not always create a collections.deque() in asyncio.Lock() (GH-13834)
msg344696 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2019-06-05 10:18
Thanks, Zackery!
Date User Action Args
2022-04-11 14:59:06adminsetgithub: 78948
2019-06-05 10:18:33asvetlovsetstatus: open -> closed
resolution: fixed
messages: + msg344696

stage: patch review -> resolved
2019-06-05 10:17:50miss-islingtonsetmessages: + msg344695
2019-06-05 09:38:25ZackerySpytzsetnosy: + ZackerySpytz

versions: + Python 3.9
2019-06-05 09:33:51miss-islingtonsetpull_requests: + pull_request13715
2019-06-05 09:33:29miss-islingtonsetnosy: + miss-islington
messages: + msg344690
2019-06-05 05:48:55ZackerySpytzsetkeywords: + patch
stage: patch review
pull_requests: + pull_request13713
2018-09-21 15:54:44yselivanovcreate