The native version of the in-memory map is designed to reduced fragmentation, and keep the Java garbage collector from needing to worry about a lot of small objects that have relatively long lifespans. Yes, it generally gets higher performance, but not by much: the main benefit comes from avoiding stop-the-world garbage collections.
The use of mlock is experimental, linux-only, and we're not happy with the results (yet). It is unused by default. -Eric On Tue, Nov 8, 2011 at 10:26 AM, Michael Wall <[email protected]> wrote: > Changing to src/server/src/c++ and running make built them fine and appears > to have put them in the correct lib/native directory. I hadn't noticed > before, but the message says there are built in java classes for the map > and mlock. I am assuming the c++ version are just more performant. > >
