Re:Python 3.7: Introducing Data Classes
by comnetxr on Wednesday April 18, 2018 @05:37PM
(#16871452)
memoization is a common use case. If you are doing an expensive computation that gives the same answer for the the same inputs, you can build a lookup table for cases you have already encountered to avoid recomputing. you can use an object to encapsulate the inputs (or the inputs might be objects already).
[ Parent
| on HN ]
There are no comments on this comment yet.