Report on Python AST Optimizer
on my Python Equations II library:
using the "run all unit tests" script, which gives the library a fairly thorough and substantial combing over. I had been running the Python profiler on the library repeatedly for years, trying my best to improve performance by reworking any poorly performing code. While a recursive diff of before-and-after directories showed that the optimizer had been applied, I did not see any reduction in my test machine's 338 second total runtime.
The AST Optimizer is worth trying if you suspect your Python code is not at peak performance level.
James
2 Replies
@Guspaz:
I'm confused.
I understand your "confusion".
James