tag:blogger.com,1999:blog-7844526396210378482.post438887745441378322..comments2024-01-31T09:23:26.925+00:00Comments on Noel O'Blog: Speedup repeated calls to Python functionsNoel O'Boylehttp://www.blogger.com/profile/03288289351940689018noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-7844526396210378482.post-52374511380967951492012-05-11T13:18:44.837+01:002012-05-11T13:18:44.837+01:00Thanks for the info Andrew. I've updated the p...Thanks for the info Andrew. I've updated the post.Noel O'Boylehttps://www.blogger.com/profile/03288289351940689018noreply@blogger.comtag:blogger.com,1999:blog-7844526396210378482.post-1590983309793956482012-05-02T18:30:47.494+01:002012-05-02T18:30:47.494+01:00I read in the change log that Python 3.2 even adde...I read in the change log that Python 3.2 even added functools.lru_cache which implements something like this as part of the standard library. It also supports a limited size cache, so you don't have to worry about your memo cache getting too large.<br /><br />Too bad I'm still using Python 2.7. :)Andrew Dalkehttps://www.blogger.com/profile/17091314849699854287noreply@blogger.com