Skip to content

bpo-32351: Use fastpath in asyncio.sleep if delay<0#4908

Merged
asvetlov merged 2 commits intopython:masterfrom
asvetlov:asyncio-sleep
Dec 17, 2017
Merged

bpo-32351: Use fastpath in asyncio.sleep if delay<0#4908
asvetlov merged 2 commits intopython:masterfrom
asvetlov:asyncio-sleep

Conversation

@asvetlov
Copy link
Copy Markdown
Contributor

@asvetlov asvetlov commented Dec 17, 2017

Currently asyncio.sleep schedules a callback execution by loop.call_later() call, which has the same behavior but 2x slower.

https://bugs.python.org/issue32351

@asvetlov asvetlov requested a review from 1st1 as a code owner December 17, 2017 12:24
@asvetlov asvetlov changed the title Use fastpath in asyncio.sleep if delay<0 bpo-32351: Use fastpath in asyncio.sleep if delay<0 Dec 17, 2017
@asvetlov asvetlov merged commit 5382c05 into python:master Dec 17, 2017
@asvetlov asvetlov deleted the asyncio-sleep branch December 17, 2017 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants