bpo-11105: Do not crash when compiling recursive ASTs by isidentical · Pull Request #20594 · python/cpython (original) (raw)
I didn't bother with benchmarking extensively though it seems like when compiling python AST objects (only on compile()
route), it is now %2~ slower (debug build, with no pgo/lto). (python -m timeit -s 'import ast; source="foo(bar, baz + quux, eggs[what], lambda: spam ** 2),"*10000; tree=ast.parse(source)' 'compile(tree,"<test>","exec")'
)