[issue34755] Few minor optimizations in _asynciomodule.c

2018-09-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34755] Few minor optimizations in _asynciomodule.c

2018-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset fb3e9c00ed79f4d880ab9a67aab861eb3660ec75 by Serhiy Storchaka in branch 'master': bpo-34755: Add few minor optimizations in _asynciomodule.c. (GH-9455) https://github.com/python/cpython/commit/fb3e9c00ed79f4d880ab9a67aab861eb3660ec75

[issue34755] Few minor optimizations in _asynciomodule.c

2018-09-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +8870 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue34755] Few minor optimizations in _asynciomodule.c

2018-09-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : * Perform cheap comparison with None before expensive checks in task_step_impl(). * Use more efficient private API for getting and setting an optional attribute. * Use PyGen_Check() instead of inspect.isgenerator(). * Use faster and more idiomatic way of g