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

New feature: integer sequences as keys #31

Open
pombredanne opened this issue Jun 16, 2016 · 2 comments
Open

New feature: integer sequences as keys #31

pombredanne opened this issue Jun 16, 2016 · 2 comments

Comments

@pombredanne
Copy link

It would be great to have a new class that would support storing sequences of integers in a defined range as keys rather than only unicode.

@superbobry
Copy link
Member

I think we could introduce a BytesTtrie and add a struct-based wrapper on top.

@superbobry superbobry mentioned this issue Jun 28, 2016
@superbobry
Copy link
Member

superbobry commented Jul 11, 2016

Unfortunately, BytesTrie can't be implemented with the current version of libdatrie. The maximum size of the alphabet supported by the library is 255 (and not 256), therefore we can't store an arbitrary sequence of bytes.

I've emailed @thep about the issue but got no reply so far.

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