ehn-dcc-development / eu-dcc-business-rules

eHealth collaboration space business rules
Apache License 2.0
30 stars 16 forks source link

Improve performance of evaluating CertLogic expressions #97

Closed dslmeinte closed 2 years ago

dslmeinte commented 2 years ago

The current CertLogic evaluator interprets the CertLogic expression's JSON directly. (This includes doing format validation which can also be done through the validate function.) This can be made more performant as follows:

  1. Do any format validation separate from evaluation, and mark format-validated rules as such in some way.
  2. “Compile” the expression JSON to a tree of JS objects whose root evaluates that expression directly on data. This has the following benefits:
dslmeinte commented 2 years ago

Closed per PR #124