Time: 2945.8490 secs. calls: 75 avg: 39277986.8 usec/call for find-output-interactors
Time: 2067.2802 secs. calls: 46366 avg: 44586.1 usec/call for generate-result
after patching, its this:
Time: 1409.3709 secs. calls: 75 avg: 18791612.0 usec/call for find-output-interactors
Time: 330.18767 secs. calls: 45971 avg: 7182.5 usec/call for generate-result
The patch is this (i'm not making a pull req, because it requires additional cleanup for production code) Also, plenty more optimization opportunities are readily available in this code-block.
Pursuant to comment https://github.com/MOZI-AI/annotation-scheme/issues/98#issuecomment-571891078 and similar to issue #103 the speed of biogrid annotation can be more than doubled, with the code below. Viz, before, the patch, perf is this:
after patching, its this:
The patch is this (i'm not making a pull req, because it requires additional cleanup for production code) Also, plenty more optimization opportunities are readily available in this code-block.
and the rest of the function is more-or-less same as before, except:
biogrid-pairs
andbiogrid-genes
they are not neededGeneNode
its already an atom. So this gives:Note that the above also contains three bug fixes: two to
find-go-term
and one to(locate-node coding-prot-b)) ;;; <<< bug fix here