Skip to content

Releases: nicolaskagami/poptrie

v0.2.0

15 Mar 13:11

Choose a tag to compare

What's Changed

Full Changelog: 0.1.1...0.2.0

v0.1.1

25 Feb 17:00

Choose a tag to compare

Poptrie v0.1.1

Improved documentation and added a simple lookup benchmark.

Full Changelog: 0.1.0...0.1.1

v0.1.0

20 Feb 17:37

Choose a tag to compare

Poptrie v0.1.0

First version of poptrie with leafvec optimization. It's already faster than alternatives like PrefixMap when running with native POPCOUNT and BEXTR instructions. Currently the Key trait is not sealed, allowing custom keys, but this may change in the future (a breaking change).

API

Function Description
new() Construct a new, empty poptrie
insert(key, key_length, value) Insert a value associated with the given prefix
lookup(key) Longest-prefix match lookup, returns Option<&V>
contains_key(key, key_length) Returns true if the exact prefix is present
remove(key, key_length) Remove a prefix and return its value

Full Changelog: https://github.com/nicolaskagami/poptrie/commits/0.1.0