[New-bugs-announce] [issue32355] Optimize asyncio.gather()

Yury Selivanov report at bugs.python.org
Sun Dec 17 21:41:07 EST 2017

New submission from Yury Selivanov <yselivanov at gmail.com>:

asyncio.gather can be made faster if:

1. we don't use functools.partial
2. create less intermittent collections
3. drop unnecessary code (e.g. gather has some code that's duplicated in ensure_future that it uses etc)

The proposed PR makes asyncio.gather 10-15% faster on the attached benchmark.

assignee: yselivanov
components: asyncio
files: t.py
messages: 308508
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Optimize asyncio.gather()
type: performance
versions: Python 3.7
Added file: https://bugs.python.org/file47336/t.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list