Menu

Commit [r22049]  Maximize  Restore  History

Large speed up for the internal structural object for when many models are present.

The new ModelList.current_models object keeps track of all the models already present in the
structural object. This simplifies the checks of the pack_structs() internal structural object
method by removing expensive looping. This allows the loading of PDB files to continue to be fast
even with many tens or hundreds of thousands of models already loaded.

bugman 2014-01-27

changed /trunk/lib/structure/internal/models.py
changed /trunk/lib/structure/internal/object.py
/trunk/lib/structure/internal/models.py Diff Switch to side-by-side view
Loading...
/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.