Skip to content

perf(post-1.0): predicate push-down for expression clauses #207

Closed

Description

@adityamukho

Roadmap source

ROADMAP.md: Post-1.0 Performance Backlog.

Problem

Expr predicate clauses such as [(> ?age 30)] are applied after all pattern matching. This can retain too many bindings for too long.

Proposed fix

Push predicate clauses down so they filter bindings as early as possible once their variables are bound.

Acceptance criteria

  • Reorder eligible predicate expressions earlier without changing query semantics.
  • Preserve safety checks for unbound variables.
  • Add tests for predicates that can and cannot be pushed down.
  • Add benchmark coverage for selective predicates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceBenchmark performance regressionsrustPull requests that update rust code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions