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

encode delete op as negative numbers #4

Open
dwelle opened this issue Jun 28, 2020 · 0 comments
Open

encode delete op as negative numbers #4

dwelle opened this issue Jun 28, 2020 · 0 comments

Comments

@dwelle
Copy link

dwelle commented Jun 28, 2020

Is there a reason why the lib doesn't encode delete ops as -10 instead of {d:10}? Saves three bytes if stored as string. If stored as binary, the benefits are even bigger I presume.

EDIT: just noticed that it was maybe added in anticipation of invert support (at the time I forked this lib to move to delete ops encoded as negative numbers, this was not the case).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant