Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Fast Copy of Trie #5221

Merged
merged 2 commits into from Mar 26, 2020
Merged

Add Fast Copy of Trie #5221

merged 2 commits into from Mar 26, 2020

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Mar 26, 2020

To reduce memory usage from the copying of the field trie, we utilize a new method called FastCopy which removes all references to the trie in the source state. This is used when the state we are copying from is going to be garbage collected and eventually destroyed.

  • Also re-order check in saveHeadNoDB to check our state map first.

@nisdas nisdas added the Ready For Review A pull request ready for code review label Mar 26, 2020
@codecov
Copy link

codecov bot commented Mar 26, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@2df7679). Click here to learn what that means.
The diff coverage is 79.16%.

@@            Coverage Diff            @@
##             master    #5221   +/-   ##
=========================================
  Coverage          ?   56.32%           
=========================================
  Files             ?      289           
  Lines             ?    22490           
  Branches          ?        0           
=========================================
  Hits              ?    12667           
  Misses            ?     8046           
  Partials          ?     1777

@rauljordan rauljordan merged commit 4118fa5 into master Mar 26, 2020
@delete-merged-branch delete-merged-branch bot deleted the fastCopy branch March 26, 2020 16:21
nisdas pushed a commit that referenced this pull request Mar 27, 2020
This reverts commit 4118fa5.
prylabs-bulldozer bot pushed a commit that referenced this pull request Mar 27, 2020
* Revert "new fixes (#5221)"

This reverts commit 4118fa5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants