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
Each account storage (e.g. "private", "public", "storage") has 8-byte register which is used to construct a new register path that leads to actual StorageMap.
This indirection requires an extra read, extra register (8 bytes), and mtrie node (96 bytes) for every account storage.
Suggested Solution
We can directly store the StorageMap for each account storage and remove the extra 8-byte register and 96-byte node for each account storage.
Although this solution does not require migration, it would be cleaner to do it in migration.
The text was updated successfully, but these errors were encountered:
fxamacker
changed the title
Each account storage has indirection which requires extra read and extra register
Each account storage has indirection which requires extra read, register (8 bytes), and node (96 bytes)
Oct 13, 2023
Issue to be solved
Each account storage (e.g. "private", "public", "storage") has 8-byte register which is used to construct a new register path that leads to actual
StorageMap
.This indirection requires an extra read, extra register (8 bytes), and mtrie node (96 bytes) for every account storage.
Suggested Solution
We can directly store the
StorageMap
for each account storage and remove the extra 8-byte register and 96-byte node for each account storage.Although this solution does not require migration, it would be cleaner to do it in migration.
The text was updated successfully, but these errors were encountered: