#5 iterate speedup

v1.6.0.0
closed
nobody
None
5
2013-10-31
2012-06-12
No

Currently the "iterate"-like commands use PyRun_String in the loop, which means it
compiles the same code for every atom. If you instead use Py_CompileString
once and PyEval_EvalCode in the loop, it's about 4x faster.

This patch changes the interface of PAlterAtom and PAlterAtomState to take a
PyCodeObject instead of a string.

Discussion

  • Thomas Holder

    Thomas Holder - 2012-12-07
    • status: open --> accepted
    • milestone: -->
     
  • Thomas Holder

    Thomas Holder - 2013-10-31
    • status: accepted --> closed
    • Group: --> v1.6.0.0
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks