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
I don’t ask for crypto. M◉⃤|<𓊖༒𓊖 Takemiya 武宮誠 (Sora.org & SORAMITSU), [2025/01/08 19:58]
How many bytes used per account stored in memory in wsv?
S. Sato, [2025/01/09 0:20]
Approximately 2.2GiB resident memory difference is observed for 2^20 (1Mi) account-asset pairs, which means 2200~2300B for a pair. Code (s8sato@17bfacd)
Assumptions:
No difference except in the world state: compared in the initial state of 0 blocks
Every account accompanies one asset
I might investigate further to be more precise
S. Sato, [2025/01/09 0:47]
We might have to store multihash instead of PublicKey as well as to dedup ids
I don’t ask for crypto. M◉⃤|<𓊖༒𓊖 Takemiya 武宮誠 (Sora.org & SORAMITSU), [2025/01/09 1:12]
Do we store compressed public keys?
S. Sato, [2025/01/09 1:28]
I guess no, it consumes 8+296 bytes while e.g. ed25519 multihash is essentially 32 bytes
I don’t ask for crypto. M◉⃤|<𓊖༒𓊖 Takemiya 武宮誠 (Sora.org & SORAMITSU), [2025/01/09 14:18]
We can compress the public key I guess as we just need a bit showing if y is even or odd and not the whole y coord
The text was updated successfully, but these errors were encountered:
In addition to PublicKey size and duplicate IDs between keys and values, it would be a major factor in memory usage that mv::storage::Storage.revert holds a snapshot to handle soft forks
The text was updated successfully, but these errors were encountered: