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

Add support for using triomphe::Arc behind a feature flag #74

Merged
merged 1 commit into from Mar 19, 2024

Conversation

arthurprs
Copy link
Contributor

Add support for using triomphe::Arc behind a feature flag with the same name.

triomphe::Arc has no weak references, so it has simpler/faster copy-on-write methods like make_mut and try_unwrap.

On my x64 box the improvements are hard to detect (single digits %) but it can only get faster with contention and/or weaker memory models (e.g. arm64).

@jneem
Copy link
Owner

jneem commented Mar 19, 2024

Thanks!

@jneem jneem merged commit 51847ea into jneem:main Mar 19, 2024
15 of 16 checks passed
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

2 participants