Skip to content

Limiting saturation based on the cost function #148

Answered by pavpanchekha
ckaran asked this question in Q&A
Discussion options

You must be logged in to vote

Typically users of egg do not run it to saturation—because that typically takes a long time, or even because they are using a set of rewrite rules where saturation never happens. (That's the situation in Herbie.) Instead you just run it for a while and extract the best when you stop. Since egg can handle pretty large e-graphs (like, about a million nodes?) that might be good enough for you.

The idea of targeting rewrites based on cost is still interesting, it just probably isn't necessary for your use case!

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ckaran
Comment options

@pavpanchekha
Comment options

@ckaran
Comment options

Answer selected by ckaran
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants