Eugene Toder <elto...@gmail.com> added the comment:
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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42903> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com