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

fix: use LRUMap for all in-memory caches #734

Merged
merged 4 commits into from
Oct 18, 2024
Merged

fix: use LRUMap for all in-memory caches #734

merged 4 commits into from
Oct 18, 2024

Conversation

arcoraven
Copy link
Contributor

@arcoraven arcoraven commented Oct 18, 2024

PR-Codex overview

This PR focuses on optimizing various cache implementations by replacing Map with LRUMap from the mnemonist library across multiple files, enhancing memory efficiency and performance.

Detailed summary

  • Changed accessTokenCache from Map to LRUMap.
  • Changed smartWalletsCache from Map to LRUMap.
  • Changed webhookCache from Map to LRUMap.
  • Changed _accountsCache from Map to LRUMap.
  • Changed sdkCache from Map to LRUMap.
  • Changed walletsCache from Map to LRUMap.
  • Changed keypairCache from Map to LRUMap.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@arcoraven arcoraven merged commit 873c0ef into main Oct 18, 2024
4 checks passed
@arcoraven arcoraven deleted the ph/useLRUMap branch October 18, 2024 22:03
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.

2 participants