NCATSTranslator / reasoner-validator

Validation of Translator OpenAPI (TRAPI) messages both to TRAPI and Biolink Model standards. See https://ncatstranslator.github.io/reasoner-validator/
Other
2 stars 4 forks source link

Can some clever caching of schemas speed things up? #95

Open edeutsch opened 1 year ago

edeutsch commented 1 year ago

Not crucial or urgent, and I'm not certain this is a problem, but here are my musings:

I wonder if some clever caching would improve each validation by at least a second. Maybe not huge, but when someone is waiting on the result, not paying a 1 second cost 10 times may be a benefit.

Not trivial though. Where do you store the caches? How do you make the JSON conversion storage thread and concurrent process safe?

Maybe a job for ARAX, not for the validator? I don't know.