[New-bugs-announce] [issue47131] Speedup test_unparse
Jeremy Kloth
report at bugs.python.org
Sat Mar 26 15:15:49 EDT 2022
New submission from Jeremy Kloth <jeremy.kloth+python-tracker at gmail.com>:
The string building and comparing of ast.dump() causes significant slowdowns on the large ASTs produced when doing the roundtrip test on the stdlib.
This PR avoids that cost by doing a direct node traversal and comparison. It results in a 33% runtime improvement on machines to which I have access.
----------
components: Tests
messages: 416082
nosy: jkloth
priority: normal
severity: normal
status: open
title: Speedup test_unparse
versions: Python 3.10, Python 3.11, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47131>
_______________________________________
More information about the New-bugs-announce
mailing list