-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This refactor: 1. Ensures we never write anything till we flush. This: 1. Saves us quite a bit of time/gas when making many state modifications. 2. Gives us some room to further optimize batch operations without requiring a network upgrade. 3. Is much easier to reliably re-implement (e.g., in other languages). 2. Completely decodes nodes on load, and re-encodes them on save. This means all bitfield operations are isolated to two functions and bitfields do not need to be maintained in state (they're generated on the fly on flush). 3. Checks a bunch of invariants. We can't check everything, but we can at least avoid doing anything terribly incorrect.
- Loading branch information
Showing
10 changed files
with
715 additions
and
453 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module github.com/filecoin-project/go-amt-ipld/v2 | ||
module github.com/filecoin-project/go-amt-ipld/v3 | ||
|
||
go 1.12 | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.