]> git.ipfire.org Git - thirdparty/tornado.git/commit
Timeout micro-optimizations.
authorBen Darnell <ben@bendarnell.com>
Sun, 20 Apr 2014 00:13:40 +0000 (20:13 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 20 Apr 2014 00:13:40 +0000 (20:13 -0400)
commit5faab93af7d2b857c862fefb9f595d86276d1322
tree26313569e591145e7ecf0587c3eaaa0039355286
parente239a8a73603fda37b1849cf7e11ea835a7d5553
Timeout micro-optimizations.

Use the (C) timedelta.total_seconds function when available.  But it's
still a bit faster to use numeric timeouts instead of back-and-forth
through timedelta, so do that instead in http1connection.
tornado/http1connection.py
tornado/ioloop.py