MOZI-AI / annotation-scheme

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

Remove the unnecessary string conversions #171

Closed Habush closed 4 years ago

Habush commented 4 years ago

This PR removes the unnecessary string conversions that happens when passing the result of the annotation functions to the atomese parser. This partly fixes the guile heap blow as discussed in #111

rekado commented 4 years ago

Commit https://github.com/MOZI-AI/annotation-scheme/pull/171/commits/ed7052775dc85e407e6a149506c335cf0cf6310e is unrelated to making the parser work on the S-expression directly.

The parser is supposed to take an Atomese expression, not a list of expressions. This breaks the abstraction. If multiple expressions are to be parsed, the caller should map.