BPO | [32351](https://bugs.python.org/issue32351) --- | :--- Nosy | @asvetlov, @1st1 PRs | python/cpython#4908 *Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.* Show more details GitHub fields: ```python assignee = None closed_at = created_at = labels = ['3.7', 'expert-asyncio', 'library', 'performance'] title = 'Use fastpath in asyncio.sleep if delay<0' updated_at = user = 'https://github.com/asvetlov' ``` bugs.python.org fields: ```python activity = actor = 'asvetlov' assignee = 'none' closed = True closed_date = closer = 'asvetlov' components = ['Library (Lib)', 'asyncio'] creation = creator = 'asvetlov' dependencies = [] files = [] hgrepos = [] issue_num = 32351 keywords = ['patch'] message_count = 2.0 messages = ['308487', '308489'] nosy_count = 2.0 nosy_names = ['asvetlov', 'yselivanov'] pr_nums = ['4908'] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = 'performance' url = 'https://bugs.python.org/issue32351' versions = ['Python 3.7'] ```
Activity
asvetlov commentedon Dec 17, 2017
Currently asyncio.sleep schedules a callback execution by
loop.call_later()call, which has the same behavior but 2x slower.asvetlov commentedon Dec 17, 2017
New changeset 5382c05 by Andrew Svetlov in branch 'master':
bpo-32351: Use fastpath in asyncio.sleep if delay<0 (bpo-4908)
5382c05