-
Notifications
You must be signed in to change notification settings - Fork 704
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
Remove cached node bytes from merkle nodes #2393
Merged
Merged
Changes from 33 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
e562467
Shrink bytes stored in nodes
dboehm-avalabs 6446181
Update db_test.go
dboehm-avalabs 48d7a07
Update node.go
dboehm-avalabs ddace03
Update codec.go
dboehm-avalabs d66f8e7
reduce bytes
dboehm-avalabs 2fa326e
Update trieview.go
dboehm-avalabs 67e5f39
Merge branch 'ShrinkNodeStorage' into RemoveNodeBytes
dboehm-avalabs 1e9e189
Update trieview.go
dboehm-avalabs 603ca6c
Update db.go
dboehm-avalabs 07bec1f
Merge branch 'ShrinkNodeStorage' into RemoveNodeBytes
dboehm-avalabs 7908bb5
Merge branch 'dev' into ShrinkNodeStorage
b5a6dfa
nit
d6c0774
remove unused channel
4538d42
Update trieview.go
dboehm-avalabs f3461fa
Merge branch 'dev' into ShrinkNodeStorage
dboehm-avalabs 39cc53b
Merge branch 'dev' into RemoveNodeBytes
dboehm-avalabs 8462ead
Merge branch 'ShrinkNodeStorage' into RemoveNodeBytes
dboehm-avalabs a9ba3a1
Merge branch 'dev' into ShrinkNodeStorage
b640a5a
Merge branch 'ShrinkNodeStorage' into RemoveNodeBytes
dboehm-avalabs 3b23a4c
Update db.go
dboehm-avalabs 20df491
Update x/merkledb/codec.go
dboehm-avalabs 2a3b29c
comments
dboehm-avalabs 2a3f2a2
Merge branch 'dev' into RemoveNodeBytes
dboehm-avalabs 4382155
Merge branch 'RemoveNodeBytes' of https://github.com/ava-labs/avalanc…
dboehm-avalabs 9050a16
Merge branch 'dev' into RemoveNodeBytes
dboehm-avalabs 278abec
Update codec.go
dboehm-avalabs 2d14a85
Update codec.go
dboehm-avalabs 66b4498
Merge branch 'dev' into RemoveNodeBytes
dboehm-avalabs ed026bc
Update codec_test.go
dboehm-avalabs 1c1ced9
Update codec.go
dboehm-avalabs fd34f89
Update codec.go
dboehm-avalabs 1f3363e
Update codec.go
dboehm-avalabs 83892ed
Update codec.go
dboehm-avalabs 20c6427
Merge branch 'dev' into RemoveNodeBytes
dboehm-avalabs de890c5
Merge branch 'dev' into RemoveNodeBytes
dboehm-avalabs 40c9894
nits; add test
ebfba67
Merge branch 'RemoveNodeBytes' of github.com:ava-labs/avalanchego int…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this cached value means we'll have to reserialize the node before writing it. Are we concerned about the additional time that'll take? Seems to be a tradeoff between memory usage and CPU usage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anything we are writing is something we edited so this would have always been nil