Skip to content

Consider switching to LLVM-style RTTI for Nodes and NodeStateData #372

@arcondello

Description

@arcondello

See https://llvm.org/docs/HowToSetUpLLVMStyleRTTI.html

The upshot is keeping an enum of all possible node types and then storing that value on each instantiated object. The benefit is much faster type checking and casting, the downside is a small increase in the memory footprint of each instantiated object. Also a decent amount of boilerplate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions