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

Thread-safe EGraph struct #517

Merged
merged 2 commits into from
Feb 3, 2025
Merged

Thread-safe EGraph struct #517

merged 2 commits into from
Feb 3, 2025

Conversation

yihozhang
Copy link
Collaborator

We can make the EGraph implements the Send trait by substituting some of the components with thread-safe alternatives so this works:

    lazy_static! {
        pub static ref RT: Mutex<EGraph> = Mutex::new(EGraph::default());
    }

@yihozhang yihozhang requested a review from a team as a code owner January 31, 2025 00:36
@yihozhang yihozhang marked this pull request as draft January 31, 2025 00:37
@yihozhang yihozhang marked this pull request as ready for review January 31, 2025 00:47
Copy link

codspeed-hq bot commented Jan 31, 2025

CodSpeed Performance Report

Merging #517 will not alter performance

Comparing yihozhang-thread-safe-egraph (61f5adc) with main (9e6ecb6)

Summary

✅ 10 untouched benchmarks

src/ast/parse.rs Show resolved Hide resolved
@Alex-Fischman
Copy link
Collaborator

Fixes #516.

@yihozhang yihozhang merged commit 215714e into main Feb 3, 2025
8 checks passed
@Alex-Fischman Alex-Fischman deleted the yihozhang-thread-safe-egraph branch February 3, 2025 21:05
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.

3 participants