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

Factor current-span logic into a caching handle #2139

Merged
merged 1 commit into from
May 23, 2022

Conversation

saethlin
Copy link
Member

@saethlin saethlin commented May 21, 2022

After #2030 and while working on #1935 it became quite clear that we need to do some caching here, because some retag operations generate many calls to log_invalidation, and would thus search the current thread's stack many times for a local crate. This caching fixes that. This handle type also has the nice benefit of tucking away all the ThreadManager + CrateNum logic.

src/machine.rs Outdated Show resolved Hide resolved
src/machine.rs Outdated Show resolved Hide resolved
src/machine.rs Outdated Show resolved Hide resolved
@RalfJung
Copy link
Member

Nice!
@bors r+

@bors
Copy link
Collaborator

bors commented May 23, 2022

📌 Commit b20c6cf has been approved by RalfJung

@bors
Copy link
Collaborator

bors commented May 23, 2022

⌛ Testing commit b20c6cf with merge d60aa47...

@bors
Copy link
Collaborator

bors commented May 23, 2022

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing d60aa47 to master...

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.

None yet

3 participants