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
Currently the API is pub fn into_plain_state(self, is_value_known: OriginalValuesKnown) -> StateChangeset. This means that reth DB interfaces must consume the bundlestate in order to write plain state to DB.
Given that all information in the BundleState is efficiently memcopy-able, we could make pub fn to_plain_state(&self, is_value_known: OriginalValuesKnown) -> StateChangeset with relatively little overhead (deref-and-copy instead of copy-to-stack-and-copy). This version would copy AccountInfo and rely on bytes::Bytes internal efficient Clone for contracts.
The text was updated successfully, but these errors were encountered:
Currently the API is
pub fn into_plain_state(self, is_value_known: OriginalValuesKnown) -> StateChangeset
. This means that reth DB interfaces must consume the bundlestate in order to write plain state to DB.Given that all information in the
BundleState
is efficiently memcopy-able, we could makepub fn to_plain_state(&self, is_value_known: OriginalValuesKnown) -> StateChangeset
with relatively little overhead (deref-and-copy instead of copy-to-stack-and-copy). This version would copyAccountInfo
and rely onbytes::Bytes
internal efficientClone
for contracts.The text was updated successfully, but these errors were encountered: