Message384893
As you can see in my original post, the difference between @cache (aka @lru_cache(None)) and just @lru_cache() is negligible in this case. The optimization in this PR makes a much bigger difference. At the expense of some lines of code, that's true.
Also, function calls in Python are quite slow, so being faster than a function call is not a high bar. |
|
Date |
User |
Action |
Args |
2021-01-12 06:12:22 | eltoder | set | recipients:
+ eltoder, rhettinger, vstinner, python-dev, serhiy.storchaka |
2021-01-12 06:12:22 | eltoder | set | messageid: <1610431942.94.0.279506047858.issue42903@roundup.psfhosted.org> |
2021-01-12 06:12:22 | eltoder | link | issue42903 messages |
2021-01-12 06:12:22 | eltoder | create | |
|