Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Jan 05, 2013 11:38 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
I tried the Python compile-time AST Optimizer:

https://bitbucket.org/haypo/astoptimizer

on my Python Equations II library:

http://code.google.com/p/pyeq2/downloads/list

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


Top
   
PostPosted: Mon Jan 07, 2013 6:50 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
So... your recommendation for AST Optimizer is that it didn't make any improvements for you whatsoever? I'm confused.


Top
   
PostPosted: Tue Jan 08, 2013 8:40 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
Guspaz wrote:
I'm confused.


I understand your "confusion".

James


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group