Skip to content

Reduce simplify code size #727

Description

@dsharlet

Currently, the rewrite rules in https://github.com/dsharlet/slinky/blob/main/builder/simplify_rules.h are written as templates that generate a lot of code.

At the cost of some performance, we could greatly reduce this code size impact by changing these rules to generate constexpr data instead of code, and change the matching engine to be an interpreter instead of generating code to implement the matching and rewrites.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions