mirror of
https://github.com/ProjectSynthoria/SynthoriaArchive.git
synced 2025-03-12 07:26:54 +02:00
![]() This commit adds a caching_url_for using functools.lru_cache (currently with maxsize at 4096 entries) and replaces flask.url_for with it, as there is no harm in doing so. This greatly improves template generation speed, from ~115ms to ~75ms on the front page (using the simple benchmark introduced in the previous commit). |
||
---|---|---|
.. | ||
static | ||
templates | ||
views | ||
__init__.py | ||
api_handler.py | ||
backend.py | ||
bencode.py | ||
email.py | ||
extensions.py | ||
forms.py | ||
models.py | ||
search.py | ||
template_utils.py | ||
torrents.py | ||
utils.py |