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

feat(rust): improve ockam_node #8718

Draft
wants to merge 2 commits into
base: davide-baldo/router-as-shared-object
Choose a base branch
from

Conversation

SanjoDeundiak
Copy link
Member

@SanjoDeundiak SanjoDeundiak commented Dec 22, 2024

  1. Using Oneshot channels where possible - faster, better semantics, avoiding async when sending a signal
  2. Less async operations
  3. Less clones
  4. HashMaps and HashSet instead of BTreeMap and BTreeSet
  5. More granular locks (lock individual fields instead of the whole struct)
  6. Renaming to improve vocabulary consistency
  7. Using Weak<Router>
  8. Use tokio::Handle instead of tokio::Runtime where possible

TODO:

  1. Tests
  2. Try lockless structures (HashMaps and HashSets at least)

@SanjoDeundiak SanjoDeundiak force-pushed the sanjo/ockam_node_impl branch 3 times, most recently from fac513d to 5b37b32 Compare December 24, 2024 18:53
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