Skip to content

Compilation perf: consider caching hash codes for immutable query expression node types #19860

Closed as duplicate

Description

@roji

We currently recalculate hash codes for nodes, but we could cache them (almost all are immutable).

See #19859 which is about not exhaustively including all query sub-nodes in hash calculation.
See #19737 for a case where exhaustive hash code calculation caused exponential calculation.

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions