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

Switch Arc<Node> for triomphe::Arc<Node> #793

Merged
merged 1 commit into from
Feb 15, 2025
Merged

Switch Arc<Node> for triomphe::Arc<Node> #793

merged 1 commit into from
Feb 15, 2025

Conversation

rkuris
Copy link
Collaborator

@rkuris rkuris commented Feb 14, 2025

Created a new pub type in storage named SharedNode, now defined as a triomphe::Arc<Node>.

This saves space because there is no weak reference count. It's also faster with fewer read-modify-update operations. See https://docs.rs/triomphe/0.1.14/triomphe/index.html for more details.

Other changes in this diff:

  • fixed some benchmark README.md warnings / errors
  • removed unused new_with_partial_path method
  • removed derived VariantArray from CacheReadStrategy and corresponding strum/strum-macros dependencies

Created a new `pub type` in storage named SharedNode, now defined as a
`triomphe::Arc<Node>`.

This saves space because there is no weak reference count. It's also
faster with fewer read-modify-update operations. See
https://docs.rs/triomphe/0.1.14/triomphe/index.html fore more details.

Other changes in this diff:

 - fixed some benchmark README.md warnings / errors
 - removed unused new_with_partial_path method
 - removed derived VariantArray from CacheReadStrategy
   and corresponding strum/strum-macros dependencies
@rkuris rkuris changed the title Switch Arc<Node> for triumphe::Arc<Node> Switch Arc<Node> for triomphe::Arc<Node> Feb 14, 2025
@rkuris rkuris merged commit 97e4e82 into main Feb 15, 2025
5 checks passed
@rkuris rkuris deleted the rkuris/triomphe branch February 15, 2025 01:11
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