Skip to content

Add numeric name field to RewriteDecl and BiRewriteDecl #870

Description

@kaeun97

In egraphs-good/egglog-python#416, I've been working on translating between the Rust AST and Python bindings. During review, a performance concern was raised: the current approach requires expensive translation for nodes that lack a stable identifier.

Many AST binding nodes already have a name field that can serve as a numeric key for referencing them from the Python side without full translation. However, RewriteDecl and BiRewriteDecl do not have such a field, which forces the Python bindings to eagerly translate these nodes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions