MOZI-AI / annotation-scheme

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

Data-file size and loading enhancements #150

Open linas opened 4 years ago

linas commented 4 years ago

File loading performance could be increased by writing, at the start of the file

(define loc (PredicateNode "has_location"))

and then using that: (Evaluation loc (List ...))

Also doing this for each gene, pathway, protein would also speed things a little bit:

(define muniA0A075B6P5 (Molecule "Uniprot:A0A075B6P5"))
(define rhsa166663 (Concept "R-HSA-166663"))

By using such defines, you save a tiny amount of time to drop into the C++ code and atomspace, to perform the lookup. Also, the files get slightly smaller.

Originally posted by @linas in https://github.com/MOZI-AI/annotation-scheme/issues/85#issuecomment-574937995