-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
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:
hegg/src/Data/Equality/Graph.hs
Line 184 in 52c0143
| & _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
Labels
No labels