The profiling of a small realistic benchmark I did for my plugin revealed that set_atom_property() take a significant amount of time.
I can set and get properties from objects, but can select only atoms. Because of this I need to set_atom_property() expensively.
For instance:
from pymol import cmd as pm
pm.pseudoatom('MyObj')
pm.set_property('CD', 7.9, 'MyObj')
pm.get_object_list('p.CD<8') # returns None
# but
pm.set_atom_property('CD', 7.9, 'MyObj')
pm.get_object_list('p.CD<8') # returns ['MyObj']
What can I do to improve the time performance of my tool?
The profiling of a small realistic benchmark I did for my plugin revealed that
set_atom_property()take a significant amount of time.I can set and get properties from objects, but can select only atoms. Because of this I need to
set_atom_property()expensively.For instance:
What can I do to improve the time performance of my tool?