Menu

Commit [r25985]  Maximize  Restore  History

Massive speed up of the internal structural object add_model() method.

This speeds up the structure.add_model user function, as well as many internal relax operations on
the structural object. Instead of using the copy.deepcopy() function to duplicate an already
existing structural model, now new molecule container objects are created and then the individual
elements of the original molecule container data lists are copied one by one. This avoids copying a
lot of internal Python junk and hence the copying operation is now orders of magnitude faster.

bugman 2014-09-23

changed /trunk/lib/structure/internal/object.py
/trunk/lib/structure/internal/object.py Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.