datrie icon indicating copy to clipboard operation
datrie copied to clipboard

New feature: integer sequences as keys

Open pombredanne opened this issue 9 years ago • 2 comments

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.

pombredanne avatar Jun 16 '16 12:06 pombredanne

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

superbobry avatar Jun 16 '16 12:06 superbobry

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.

superbobry avatar Jul 11 '16 20:07 superbobry