Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace @memoized_with_* with @memoized
Since @memoized now uses weakref to delete old cache entries, and no longer keeps the object passed as parameters alive indefinitely, we no longer need to treat the Request objects specially. In fact, if we stop doing it, it should improve memory use, because now all request-specific caches will be removed as soon as the request object dies. I also removed the memoized_with_argconv function, and replaced it with an explicit function for converting teh parameters in the one place where it was used. Change-Id: I710b96a170e429c6ffdf22ad3e552ee6e1c6b7e3
- Loading branch information
Showing
5 changed files
with
27 additions
and
208 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
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
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