3 ms·
A while back I wrote a perl wrapper[1] for the CProps[2] Character-Trie, and found the library interface quite nice to deal with, even for a complete noob at pe
by shabble 14y ago
A while back I wrote a perl wrapper[1] for the CProps[2] Character-Trie, and found the library interface quite nice to deal with, even for a complete noob at perl-xs.
They have a bit-trie listed as well (I only ever needed strings) which might be a reasonable fit for more complicated serialised objects. I have no clue how easy the python FFI/native library stuff is though. I started out with Inline::C[3], which is both amazing and horrifying in near-equal measure.
[1] Sadly neglected, and never properly packaged for CPAN, but still around at https://github.com/shabble/cprops-perl/ https://github.com/shabble/cprops-perl/
[2] http://cprops.sourceforge.net/ http://cprops.sourceforge.net/
[3] http://search.cpan.org/~sisyphus/Inline-0.51/C/C.pod http://search.cpan.org/~sisyphus/Inline-0.51/C/C.pod