Skip to content

Parent nodes are not deduplicated #21

@Tarmean

Description

@Tarmean

The node list is a set, so the semigroup instance automatically deduplicates. But the parents are stored as a list with cached size and after merges the list often contains duplicates. The worklist does get nubbed, so it is not catastrophic for performance, but I figured I'd mention it.

This discussion mentions nubbing the parent list as well, so it probably wasn't intentional? #13

Here is the relevant line:

& _parents %~ (sub_class^._parents <>)

Edit: looked it up and seems like egg doesn't do it either. egraphs-good/egg#113
Probably not crucial then, though it is a tad annoying that the graphviz graph shows them as duplicate nodes.

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