]> git.ipfire.org Git - thirdparty/tornado.git/commit
Precompile the regex used on severy set_header call.
authorBen Darnell <ben@bendarnell.com>
Sun, 5 May 2013 15:46:55 +0000 (11:46 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 5 May 2013 15:46:55 +0000 (11:46 -0400)
commit671f992409155786d5587a2cdfd30127fd2df5a0
tree6f3cd764b4ab597a2a24eaafa9317510e83662d1
parent28746b94935c3efe440b0c02d0afc8bab06d1469
Precompile the regex used on severy set_header call.

The regex was cached by the re module, but the overhead of looking it
up in the cache added up to almost 1% of the time in benchmark.py.
tornado/web.py