Files
tantivy/jitexpr
Paul MasurelandPaul Masurel 047464cf92 Accelerating jitexpr conditions using necessary conditions (#3129)
* jitexpr

* Added possible necessary conditions to jitexpr.

A function makes it possible to infer a necessary query from an expression to match.
We can then accelerate queries involving a calculated field by not even evaluating the expression
on docs that trivially do not match.

* CR comment

* CR comment

* Fixing unit tests

---------

Co-authored-by: Paul Masurel <paul.masurel@datadoghq.com>
2026-09-28 18:46:37 +02:00
..
2026-09-14 15:08:55 +02:00

This is an expression compiler relying on Cranelift.

UntypedExpr ↓ injecting variable types, and type checking TypedExpr ↓ lowering Cranelift IR ↓ Cranelift code generation Machine code (or assembly)

The project does not rely on cranelifts function call abstraction. Instead it just manipulates expression, so everything is always inlined.