Skip to content

Short-circuit block-on if same thread #862

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

Merged
merged 2 commits into from
May 22, 2025

Conversation

MichaReiser
Copy link
Contributor

@MichaReiser MichaReiser commented May 15, 2025

Early return from block_on if both the current and other thread are the same to skip the need to traverse the dependency tree (which requires a lock)

Copy link

netlify bot commented May 15, 2025

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit c749645
🔍 Latest deploy log https://app.netlify.com/projects/salsa-rs/deploys/682ee97ecfaac300080fa150

Copy link

codspeed-hq bot commented May 15, 2025

CodSpeed Performance Report

Merging #862 will not alter performance

Comparing MichaReiser:block-on-same-thread (c749645) with master (18dc594)

Summary

✅ 12 untouched benchmarks

@MichaReiser MichaReiser force-pushed the block-on-same-thread branch from cd00c8d to c749645 Compare May 22, 2025 09:08
@MichaReiser MichaReiser marked this pull request as ready for review May 22, 2025 09:10
@MichaReiser MichaReiser added the refactoring Code works but is messy label May 22, 2025
@MichaReiser MichaReiser added this pull request to the merge queue May 22, 2025
Merged via the queue into salsa-rs:master with commit 678f51a May 22, 2025
11 checks passed
@MichaReiser MichaReiser deleted the block-on-same-thread branch May 22, 2025 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Code works but is messy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants