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

RED-259: add cache for nodelistByStates #303

Open
wants to merge 3 commits into
base: red-103
Choose a base branch
from

Conversation

dnlbui
Copy link
Contributor

@dnlbui dnlbui commented Sep 18, 2024

https://linear.app/shm/issue/RED-259/add-cache-for-nodelistbystatesnodelistfromstates

Has been rebased on RED-103. SHOULD BE MERGED AFTER RED-103

Summary: Implement Caching for nodelistFromStates Function

  • caching mechanism for the nodelistFromStates function to improve performance.
  • nodelistCache Map to store cached results.
  • Cycle-based cache invalidation using lastCachedInCycle.
  • tested w/ 20+5 network + rotation + shm-transfer tests

@dnlbui
Copy link
Contributor Author

dnlbui commented Sep 19, 2024

please let me know if I should add counters or logs here. I removed ones I added in latest commit.

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