-
Notifications
You must be signed in to change notification settings - Fork 58
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
document how CLVM compression works and its format #527
Conversation
80d4f79
to
1c9821b
Compare
Pull Request Test Coverage Report for Build 12649089164Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
1c9821b
to
2573ed1
Compare
2573ed1
to
4f8ad15
Compare
4f8ad15
to
bb1dfc8
Compare
docs/compressed-serialization.md
Outdated
sub-trees). | ||
|
||
We keep popping operations off of the op-stack until it's empty. We take the | ||
following actions dependin on the operation: |
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.
following actions dependin on the operation: | |
following actions depending on the operation: |
docs/compressed-serialization.md
Outdated
serialized CLVM tree. To understand what the parse stack is, we first need to | ||
look at how CLVM is parsed. | ||
|
||
The parser has a stack of _operations_ and a stack of the parsed result (the |
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.
The parser has a stack of _operations_ and a stack of the parsed result (the | |
The parser has a stack of _operations_ and a stack of the parsed results (the |
docs/compressed-serialization.md
Outdated
bit traversal direction: <- x | ||
``` | ||
|
||
A 0 bit means follow the left sub-tree, a 1-bit means follow the right sub-tree. |
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.
A 0 bit means follow the left sub-tree, a 1-bit means follow the right sub-tree. | |
A `0` bit means follow the left sub-tree, while a `1` bit means follow the left sub-tree. |
docs/compressed-serialization.md
Outdated
### Example back-reference | ||
|
||
Consider the following LISP structure: ((`1` . `2`) . (`1` . `2`)) | ||
It Can be serialized as `0xff` `0xff` `1` `2` `0xfe` `0b10` |
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.
It Can be serialized as `0xff` `0xff` `1` `2` `0xfe` `0b10` | |
It can be serialized as `0xff` `0xff` `1` `2` `0xfe` `0b10` |
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.
This is excellent and probably very helpful to noobs. Just a few minor edits you might consider.
This may help further development in this area. There are some optimizations available in both serialization and deserialization.