Closed wolfg259 closed 10 months ago
For reference, creating a Protein, setting an order and computing a score (repeat process 50_000 times) takes about 30 seconds (on my hardware), which is indeed too slow for any serious algorithm.
8e61ccce38e82aa4b3de7140ef5bfc75f79d53e5
27f36711730faec4a411abcbebb1f6caac97f822 adds a 35x ~ 40x speedup for the usecase of measuring bond score of a sequence and order
It seems when disabling profiling, the speedup drops to ~25x, still a good speedup
Currently, if an algorithm depends on the score that a change to a protein structure will generate, there is no way of obtaining the score without either setting the structure of the main protein to the new structure, saving the previous order and calculating the score, or generating a new protein object to compare scores. An efficient score checker, perhaps outside of the Protein class, could be constructed. It could take just a sequence and an order as inputs.