Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memoize pattern #57

Closed
dreispt opened this issue Jul 3, 2014 · 2 comments
Closed

Memoize pattern #57

dreispt opened this issue Jul 3, 2014 · 2 comments

Comments

@dreispt
Copy link

dreispt commented Jul 3, 2014

Could memoization be a pattern fit for this list?

@faif
Copy link
Owner

faif commented Jul 6, 2014

I don't think that it's a very good fit for this repository. A good implementation of memoization is using decorators, as shown in the Python Decorator Library.
BTW in Python 3 there is already an lru_cache decorator in the functools module that can be used to memoize functions.

@faif faif closed this as completed Jul 6, 2014
@dreispt
Copy link
Author

dreispt commented Jul 6, 2014

OK.
And thanks for the additional info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants