wschella / Sparqlee

Simple SPARQL expression evaluator library
0 stars 0 forks source link

Compile expressions #1

Closed wschella closed 6 years ago

wschella commented 6 years ago

When an evaluator is constructed with an expression, we already gain static information unrelated to the variable mapping we receive later when actually evaluating. We could try to 'compile' some of this information in the evaluator object, so that it can be reused for multiple evaluations of the same expression with different mappings.

Some possible optimizations we could do:

wschella commented 6 years ago

Some options that would fit this issues:

wschella commented 6 years ago

Performance results made both suggestions in last comment obsolete, original suggestions need separate issues.