You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sdk/params will be used in various parts of the project to enable dynamic configuration of the chain, controlled by GovDAO.
To avoid managing event-based logic and to ensure good performance, we should implement a lazy caching mechanism for sdk/params.
This mechanism will allow each call to the param getters to first check the cache and return the value if it is available. If not, it will retrieve the value from the store and save it in the cache. We should also implement automatic cache invalidation at the end of the block when a variable changes.
Additionally, there should be an LRU system that allows a node operator to select a maximum cache size.
- [x] add `r/sys/params`
- [x] add `genesis/genesis_params.toml`
- [x] port some existing configurations
- [x] open issue: add LRU lazy caching with instant invalidation using a
transient store (#3023)
Depends on #2920
Depends on #3003 (cherry-picked)
Blocking #2911
---------
Signed-off-by: moul <[email protected]>
Co-authored-by: Morgan <[email protected]>
moul
linked a pull request
Nov 14, 2024
that will
close
this issue
sdk/params
will be used in various parts of the project to enable dynamic configuration of the chain, controlled by GovDAO.To avoid managing event-based logic and to ensure good performance, we should implement a lazy caching mechanism for
sdk/params
.This mechanism will allow each call to the param getters to first check the cache and return the value if it is available. If not, it will retrieve the value from the store and save it in the cache. We should also implement automatic cache invalidation at the end of the block when a variable changes.
Additionally, there should be an LRU system that allows a node operator to select a maximum cache size.
Related with #3003
The text was updated successfully, but these errors were encountered: