[Python-ideas] Bad programming style in decorators?

Random832 random832 at fastmail.com
Sat Jan 2 23:01:06 EST 2016


Nick Coghlan  writes:
> (and if a function is performance critical enough for the
> results to be worth caching, then it's likely performance critical
> enough to be thinking about micro-optimisations).

Maybe. It could be that the "real" implementation is Very Expensive to
invoke, and/or that the characteristics of how the function is called
change the complexity class of an algorithm that calls it for a cached
vs non-cached version.



More information about the Python-ideas mailing list