Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Get rid of MemoryDB denote #2881

Merged
merged 1 commit into from
Oct 26, 2016
Merged

Get rid of MemoryDB denote #2881

merged 1 commit into from
Oct 26, 2016

Conversation

arkpar
Copy link
Collaborator

@arkpar arkpar commented Oct 26, 2016

Reduces memory footprint by at least 40% when syncing

@arkpar arkpar added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Oct 26, 2016
Copy link
Contributor

@rphmeier rphmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of minor grumbles, but LGTM!

out.append(&rlp_sha3);
self.0.push(Operation::New(rlp_sha3, rlp));
}
else {
trace!("new_node: inline node {:?}", rlp.pretty());
trace!("new_node: inline node {:?}", &*rlp);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lost the pretty-printing here

@@ -76,7 +76,7 @@ impl fmt::Display for TrieError {
pub type Result<T> = ::std::result::Result<T, Box<TrieError>>;

/// Trie-Item type.
pub type TrieItem<'a> = Result<(Vec<u8>, &'a [u8])>;
pub type TrieItem<'a> = Result<(Vec<u8>, DBValue)>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lifetime here isn't necessary anymore.

@rphmeier rphmeier added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Oct 26, 2016
@gavofyork
Copy link
Contributor

gitlab fails?

@arkpar
Copy link
Collaborator Author

arkpar commented Oct 26, 2016

gitlab js-test fails. Does not seem relevant

@gavofyork gavofyork merged commit 5b978be into master Oct 26, 2016
@gavofyork gavofyork deleted the kill-denote branch October 26, 2016 11:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants