Why is the extraction algorithm looping through all e-classes? #123
Bastacyclop
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
|
Great question.
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
The
find_costsimplementation for extraction is looping through all e-classes:egg/src/extract.rs
Lines 286 to 293 in 18d7f61
In the POPL 2021 paper, it is mentioned that:
However, the loop updating e-class analyses looks quite different, looping through pending analyses instead of all e-classes:
egg/src/egraph.rs
Lines 705 to 716 in 18d7f61
So, I have two questions:
Analyserstructure that would offer e-class analysis capabilities outside of the e-graph (when we do not desire to maintain the analysis on the fly)? WouldExtractorthen not be a trivial user ofAnalyser?Beta Was this translation helpful? Give feedback.
All reactions