-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(290): Cache previous/next/etc. in VersionClassBase
Cache some properties in VersionClassBase as it won't really change and can improve performance significantly by avoiding extra queries Tested this in my own application and also in a shell: >>> class A: ... @cached_property ... def abc(self): ... print("test") ... return 1 ... >>> a = A() >>> a.abc test 1 >>> a.abc 1
- Loading branch information
1 parent
38cef84
commit 39b57fe
Showing
2 changed files
with
7 additions
and
5 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