3 ms·
Thanks for the suggestions. Some of those might work. The only problem with k/v stores is the serialization/deserialization cost, as most of them can only store
by qwertyuiop924 10y ago
Thanks for the suggestions. Some of those might work. The only problem with k/v stores is the serialization/deserialization cost, as most of them can only store strings.
- ddorian43 10y agolmdb has some special cases where you can store capnproto/flat-buffers objects and read without copying/deserializing!
- qwertyuiop924 10y agoReally? that could be useful...
- ddorian43 10y agoLMDB can hand you back a pointer to your object in the memory map, and we can easily use that pointer with Cap'n Proto without any calls to malloc(). source: https://news.ycombinator.com/item?id=12394385 https://news.ycombinator.com/item?id=12394385
- erichocean 10y ago> The only problem with k/v stores is the serialization/deserialization cost, as most of them can only store strings. I store Cap'n Proto objects directly into LMDB, and can read them without any memory allocation or deserialization cost. Freaking rocks.