mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 14:50:19 +00:00
fix memoization typo, link to wikipedia's overview
This commit is contained in:
@@ -602,7 +602,7 @@ clearer and thus preferred.
|
||||
This mechanism is useful for separating concerns and avoiding
|
||||
external un-related logic 'polluting' the core logic of the function
|
||||
or method. A good example of a piece of functionality that is better handled
|
||||
with decoration is memorization or caching: you want to store the results of an
|
||||
with decoration is `memoization <https://en.wikipedia.org/wiki/Memoization#Overview>` or caching: you want to store the results of an
|
||||
expensive function in a table and use them directly instead of recomputing
|
||||
them when they have already been computed. This is clearly not part
|
||||
of the function logic.
|
||||
|
||||
Reference in New Issue
Block a user