-
Notifications
You must be signed in to change notification settings - Fork 147
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
♻️ Refactored PruneStates()
#3612
♻️ Refactored PruneStates()
#3612
Conversation
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
Decided to remove |
Since
Bencodex
's fingerprinting was removed, libplanet has lost its support for backward compatibility withIStateStore
that has used fingerprinting at some point (sadly which is the case for 9c). PreservingIStateStore
compatibility was never properly implemented in the first place, so this haphazardly implemented incomplete feature has been removed. 😑I don't think
PruneStates()
can be implemented properly in any useful manner. AsIStateStore
grows,PruneStates()
will always be too slow to use unless theIStateStore
in question is pruned frequently and continuously. UsingCopyStates()
and replacing the originalIStateStore
with a copiedIStateStore
will always be a more practical solution for this purpose.