]> git.ipfire.org Git - thirdparty/tornado.git/commit
ioloop: Micro-optimize IOLoop.add_future 2587/head
authorBen Darnell <ben@bendarnell.com>
Sun, 3 Feb 2019 23:01:53 +0000 (18:01 -0500)
committerBen Darnell <ben@bendarnell.com>
Sun, 3 Feb 2019 23:01:53 +0000 (18:01 -0500)
commit64de184a785604a3aac2ed8020e246b701d81278
tree730df405e88cc2c785d551d711fbabe00cbc0f89
parent975e9168560cc03f6210d0d3aab10c870bd47080
ioloop: Micro-optimize IOLoop.add_future

Asyncio Futures always schedule their callbacks on a future iteration
of the IOLoop, so routing the callbacks through IOLoop.add_callback
again was redundant and causing unnecessary delays in callback
execution.
tornado/ioloop.py
tornado/test/iostream_test.py