-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subsume should succeed even when the tuple is not present #487
base: main
Are you sure you want to change the base?
Conversation
CodSpeed Performance ReportMerging #487 will not alter performanceComparing Summary
Benchmarks breakdown
|
@@ -430,7 +430,7 @@ fn test_serialize_subsume_status() { | |||
None, | |||
egglog::SerializedNode::Function { | |||
name: ("a").into(), | |||
offset: 0, | |||
offset: 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are there two a functions values now? They are equivalent right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new implementation conceptually makes a new entry to the database with the new timestamp and marks the old entry as stale.
The old implementation directly modifies the old entry, which is bad because the database is supposed to be append-only I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I tried to do it like delete? If that makes sense? Which does modify a row? Not saying it's right just curious what you think.
Woops sorry @yihozhang I realized my review comments had been pending for two weeks sitting here unpublished! Didn't mean to leave you hanging |
4820561
to
9684208
Compare
Subsumes #478 and fixes #462