forked from nyaadevs/nyaa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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).
- Loading branch information
1 parent
a755882
commit 885cccc
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters