nyaa/nyaa
TheAMM 7b6cf64763 Cache url_for calls with lru_cache
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).
2019-04-08 19:37:01 +03:00
..
static Revert "Make blue info bubble dismissible, configurable (#508)" 2018-08-03 04:34:19 +02:00
templates templates: cache torrent view filelist (#542) 2019-03-08 06:29:51 -08:00
views upload/edit: sanitize some string fields 2019-02-25 12:27:09 +01:00
__init__.py Cache url_for calls with lru_cache 2019-04-08 19:37:01 +03:00
api_handler.py Move bencoded info dicts from mysql torrent_info table to info_dict directory. DB change! 2018-02-02 20:39:02 +01:00
backend.py upload/edit: sanitize some string fields 2019-02-25 12:27:09 +01:00
bencode.py bencode: fix nontermination on empty or malformed input 2017-07-24 20:53:48 -06:00
email.py [Config change] Password reset by email (#381) 2017-10-08 04:34:40 +03:00
extensions.py extensions: limit pagination to max num of pages 2019-04-02 18:57:56 +02:00
forms.py Comment Hiding 2018-11-20 13:45:31 +01:00
models.py fix user preferences from #515 (#532) 2018-12-06 15:47:08 +01:00
search.py extensions: limit pagination to max num of pages 2019-04-02 18:57:56 +02:00
template_utils.py Cache url_for calls with lru_cache 2019-04-08 19:37:01 +03:00
torrents.py torrents: clean up & optimize magnets further 2018-07-21 22:06:58 +03:00
utils.py Redo nuke functionality (#459) 2018-03-25 16:24:44 -07:00