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

prefix encode for binaries #26

Open
brigadier opened this issue Jul 6, 2016 · 1 comment
Open

prefix encode for binaries #26

brigadier opened this issue Jul 6, 2016 · 1 comment

Comments

@brigadier
Copy link
Contributor

brigadier commented Jul 6, 2016

is it possible to do prefix encode so that prefix(<<"ab">>) would be the exact prefix of prefix(<<"abc">>)? I see it could be done for lists.

And also prefix([term, <<"ab">>]) as a prefix for prefix([term, <<"abc">>])

@uwiger
Copy link
Owner

uwiger commented Jul 7, 2016

It's a problem. I did a form of prefix encoding of binaries for the kvdb database:

https://github.com/Feuerlabs/kvdb/blob/master/src/kvdb_lib.erl#L261

...but I haven't tried to integrate it into sext.

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

2 participants