I would like to use in-memory btree. I am considering LMDB and STX. I appreciate help in understanding the difference between them. Among the others in context with concurrency (I'm not sure if STX supports it)
Asked
Active
Viewed 274 times
1 Answers
0
STX implements in-memory (non-persistent) B+trees as C++ templates, LMDB implements memory-mapped (persistent) B+trees as a C library. While LMDB can deliver the performance of an in-memory data structure, it is more than that. If you only need in-memory it may be overkill for whatever you're doing.

hyc
- 1,387
- 8
- 22
-
Thanks for your answer. I was wondering about the STX concurrency support as I would need such feature. What level of concurrency does STX support? Thanks again. – revit Aug 14 '16 at 07:54
-
STX implements the STL container interface. STL containers are not threadsafe. http://stackoverflow.com/questions/7817364/are-there-any-concurrent-containers-in-c11 – hyc Aug 14 '16 at 16:03