zulip/zproject
Tim Abbott 229090a3a5 middleware: Avoid running APPEND_SLASH logic in Tornado.
Profiling suggests this saves about 600us in the runtime of every GET
/events request attempting to resolve URLs to determine whether we
need to do the APPEND_SLASH behavior.

It's possible that we end up doing the same URL resolution work later
and we're just moving around some runtime, but I think even if we do,
Django probably doesn't do any fancy caching that would mean doing
this query twice doesn't just do twice the work.

In any case, we probably want to extend this behavior to our whole API
because the APPEND_SLASH redirect behavior is essentially a bug there.
That is a more involved refactor, however.
2020-02-14 16:15:57 -08:00
..
jinja2 cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
__init__.py
backends.py registration: Add support for mobile and desktop flows. 2020-02-12 11:22:16 -08:00
config.py config: Use fallback parameter of RawConfigParser.get. 2019-12-09 13:05:31 -08:00
default_settings.py auth: Add support for GitLab authentication. 2020-02-11 13:54:17 -08:00
dev_settings.py auth: Add support for GitLab authentication. 2020-02-11 13:54:17 -08:00
dev_urls.py install: Remove references to "Zulip Voyager". 2020-01-30 12:40:41 -08:00
email_backends.py tools: Upgrade Pycodestyle and fix new linter errors. 2019-01-31 12:21:41 -08:00
legacy_urls.py urls: Move the json/fetch_api_key endpoint to be an API-style route. 2018-01-08 13:15:52 -05:00
prod_settings_template.py auth: Add support for GitLab authentication. 2020-02-11 13:54:17 -08:00
settings.py middleware: Avoid running APPEND_SLASH logic in Tornado. 2020-02-14 16:15:57 -08:00
slack_importer_test_settings.py settings: Migrate test settings to modern postgres backend name. 2019-01-23 17:08:24 -08:00
terms.md.template Add TERMS_OF_SERVICE setting. 2016-07-29 20:47:31 -07:00
test_settings.py auth: Add support for GitLab authentication. 2020-02-11 13:54:17 -08:00
urls.py dependencies: Upgrade to Django 2.2.10. 2020-02-13 16:27:26 -08:00
wsgi.py wsgi.py: Fix broken error ouput for django.setup() call. 2019-06-24 12:19:51 -07:00