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.
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: