-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Port lib0 encoding/decoding #383
Comments
Overviewlib0/encode provides two types of encoding methods:
So in fact, what we encode and decode is a sequence containing multiple types DesignI plan to implement a port of the lib0 part using TestingAt present, cc @Brooooooklyn @zuoxiaodong0815 |
The following pseudo-code describes how to read a ydoc (read method without ytype)
|
Ybinary structure analysisCurrently, I have implemented the parser of ybinary(update) in #389. There are several known problems, which I will write here for future improvements to the format:
|
Background
We want to port encoding/decoding features of lib0 into OctoBase. The existing lib0 implementation is buggy and unsafe to use it in production. And we don't see any optimization for that in their roadmap.
So let's just start porting our own high-performance and production-ready lib0 encoding/decoding features in OctoBase.
Steps
The text was updated successfully, but these errors were encountered: