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

Remove HIGH_COST #433

Merged
merged 1 commit into from
Oct 5, 2024
Merged

Conversation

Alex-Fischman
Copy link
Contributor

This PR removes HIGH_COST for a few reasons:

  1. It's unused.
  2. It's buggy. On 32-bit systems (such as WASM?) i64::MAX will overflow.
  3. It's undocumented, so I don't believe it's used outside of this crate. If it is used outside of this crate, I'll edit the PR to use isize instead of i64 to fix the bug, and add documentation.

@Alex-Fischman Alex-Fischman requested a review from a team as a code owner October 4, 2024 18:44
@Alex-Fischman Alex-Fischman requested review from yihozhang and removed request for a team October 4, 2024 18:44
Copy link
Collaborator

@yihozhang yihozhang left a comment

Choose a reason for hiding this comment

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

good catch!

@Alex-Fischman Alex-Fischman merged commit 8ac9cae into egraphs-good:main Oct 5, 2024
3 checks passed
@Alex-Fischman Alex-Fischman deleted the high_cost branch October 5, 2024 00:34
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.

2 participants