Skip to content

Conversation

lexnv
Copy link
Collaborator

@lexnv lexnv commented Sep 3, 2024

This PR uses std::sync::OnceLock to create reusable variables only once:

  • crypto/noise parameters are parsing the provided string only once
  • tokio DNS resolver uses the same variable to leverage the DNS internal caching

cc @paritytech/networking

@lexnv lexnv added the enhancement New feature or request label Sep 3, 2024
@lexnv lexnv self-assigned this Sep 3, 2024
@lexnv
Copy link
Collaborator Author

lexnv commented Oct 22, 2024

Updates

  • I've deprioritized this PR in favor of other refactoring and bug fixing work
  • planning to remove the statics, so I will leave this open for a while

@lexnv
Copy link
Collaborator Author

lexnv commented Feb 27, 2025

No longer needed

@lexnv lexnv closed this Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant