Skip to content

Conversation

@yejiayu
Copy link
Contributor

@yejiayu yejiayu commented May 25, 2019

Changes

  1. Wrap the node with rc and refcell to avoid cloning the entire tree when modifying it.
  2. Serialize internally using rlp. Removed the custom codec trait (because I don't think it is necessary).
  3. Added the hasher trait of the custom hash algorithm and provided the implementation of keccak256.
  4. Removed generics from TrieError

benchmark

before:
image
after:
image

@yejiayu
Copy link
Contributor Author

yejiayu commented May 25, 2019

fix #42

@mohanson
Copy link
Contributor

Tested in cita-vm, this pr is great!

@boundless-forest
Copy link

Such amazing performance improvement !! 👍

@yejiayu yejiayu force-pushed the rewrite branch 2 times, most recently from b461438 to a642437 Compare May 31, 2019 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants