[issue47131] Speedup test_unparse

2022-04-05 Thread Jeremy Kloth
Change by Jeremy Kloth : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue47131] Speedup test_unparse

2022-04-05 Thread Jeremy Kloth
Jeremy Kloth added the comment: Resolved with merged PR. -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list

[issue47131] Speedup test_unparse

2022-04-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 0f68c208fa6a36b6c8ad3d775e64292a665ba108 by Jeremy Kloth in branch 'main': bpo-47131: Speedup AST comparisons in test_unparse by using node traversal (GH-32132)

[issue47131] Speedup test_unparse

2022-03-26 Thread Jeremy Kloth
Change by Jeremy Kloth : -- nosy: +vstinner type: -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue47131] Speedup test_unparse

2022-03-26 Thread Jeremy Kloth
Change by Jeremy Kloth : -- keywords: +patch pull_requests: +30212 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32132 ___ Python tracker ___

[issue47131] Speedup test_unparse

2022-03-26 Thread Jeremy Kloth
New submission from Jeremy Kloth : 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