SlottedArray: empty storage path optimization #147
Labels
💾 disk size
A change makes the disk size smaller
good first issue
Good for newcomers
🐌 performance
Perofrmance related issue
There are cases where there's no use in storing
NibblePath.Empty
that encoded, takes 1 byte of value 0. This can be approached in two ways. EitherNibblePath.Empty
should be changed so that it encoded always toSpan<byte>.Empty
or SlottedArray could useKey.Type
and store the storage path only for Storage and Merkle. This could impact the disk size and increase packaging of data.The text was updated successfully, but these errors were encountered: