MOZI-AI / annotation-scheme

Human Gene annotation service backend
GNU General Public License v3.0
3 stars 4 forks source link

Cache find-protein-form search results. #147

Closed linas closed 4 years ago

linas commented 4 years ago

;; Cache previous results, so that they are not recomputed again, ;; if the results are already known. Note that this function accounts ;; for about 85% of the total execution time of biogrid-interaction-annotation, ;; so any caching at all is a win. In a test of 681 genes, there is a ;; cache hit 99 out of 100 times (that is, 100 times fewer calls to ;; do-find-protein-form) resulting in a 400x speedup for this function(!) ;; and a grand-total 9x speedup for biogrid-interaction-annotation. ;; Wow.

linas commented 4 years ago

Actual performance measurement results are in #141