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
#5780 will help with this, by reducing the amount of time on map copies. However due to us having no way of tracking the map, our ability to reduce the amount map copies here is limited.
If we do need to improve it further we can track references to the map between all the states which share it like our other fields in the state. However that would be more involved to do and would clash with how we track fields in the state as this would be a non-state value. That would be the optimal solution here to reduce the amount of map copies.
To add more validators to the state, we use AppendValidator which recreates the
valIndexMap
for the entire validator set each time it is used.This is incredibly expensive during genesis state creation, and gets more expensive as more validators are added.
The text was updated successfully, but these errors were encountered: