[issue32355] Optimize asyncio.gather()

2017-12-19 Thread Yury Selivanov

Change by Yury Selivanov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32355] Optimize asyncio.gather()

2017-12-19 Thread Yury Selivanov

Yury Selivanov  added the comment:


New changeset 36c2c044782997520df7fc5604742a615ccf6b17 by Yury Selivanov in 
branch 'master':
bpo-32355: Optimize asyncio.gather() (#4913)
https://github.com/python/cpython/commit/36c2c044782997520df7fc5604742a615ccf6b17


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32355] Optimize asyncio.gather()

2017-12-17 Thread Yury Selivanov

Change by Yury Selivanov :


--
keywords: +patch
pull_requests: +4807
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32355] Optimize asyncio.gather()

2017-12-17 Thread Yury Selivanov

New submission from Yury Selivanov :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com