[issue40225] max() performance regression (quadratic time)

brendon zhang report at bugs.python.org
Wed Apr 8 08:50:29 EDT 2020


brendon zhang <brendon-zhang at hotmail.com> added the comment:

update:
it is specifically caused by passing in a generator expression to max(), where the generator invokes recursive function.

I added another file to demonstrate this

----------
Added file: https://bugs.python.org/file49044/maxbug2.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40225>
_______________________________________


More information about the Python-bugs-list mailing list