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

Use more efficient thread_local! { … = const { … } } #2003

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hrxi
Copy link
Contributor

@hrxi hrxi commented Mar 18, 2022

These don't require an initialization check on every access, which
should at least be useful for the CURRENT_STATE thread_local! in
tracing-core.

Probably can't be included any time soon, as this requires Rust 1.59:
rust-lang/rust#91355 (comment).

These don't require an initialization check on every access, which
should at least be useful for the `CURRENT_STATE` `thread_local!` in
`tracing-core`.

Probably can't be included any time soon, as this requires Rust 1.59:
rust-lang/rust#91355 (comment).
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.

1 participant