Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

yihozhang
Copy link
Collaborator

Subsumes #478 and fixes #462

@yihozhang yihozhang requested a review from a team as a code owner December 10, 2024 04:32
@yihozhang yihozhang requested review from FTRobbin and saulshanabrook and removed request for a team December 10, 2024 04:32
Copy link

codspeed-hq bot commented Dec 10, 2024

CodSpeed Performance Report

Merging #487 will degrade performances by 35.94%

Comparing yihozhang-fix-subsume2 (9684208) with yihozhang-fix-subsume2 (2f3a6c3)

Summary

❌ 2 regressions
✅ 6 untouched benchmarks
⁉️ 1 dropped benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark yihozhang-fix-subsume2 yihozhang-fix-subsume2 Change
⁉️ extract-vec-bench 74.6 ms N/A N/A
python_array_optimize 3.8 s 5.9 s -35.94%
stresstest_large_expr 2.2 s 2.8 s -20.62%

@@ -360,7 +360,7 @@ fn test_subsume_primitive() {
(subsume (one))
"#,
);
assert!(res.is_ok());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change comment above so it reflects the current state of the test? That subsuming primitives is not allowed.

@@ -430,7 +430,7 @@ fn test_serialize_subsume_status() {
None,
egglog::SerializedNode::Function {
name: ("a").into(),
offset: 0,
offset: 1,
Copy link
Member

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?

@saulshanabrook
Copy link
Member

Woops sorry @yihozhang I realized my review comments had been pending for two weeks sitting here unpublished! Didn't mean to leave you hanging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subsumption confusing semantics
2 participants