Would this be a useful comparison, given that HashMap is in-memory,
Krati disk backed?
For what it's worth, a project I am working on, tr13, can be used as a
replacement for HashMap -- it is in-memory only (although using
memory-mapped files might be easy to do) for what that's worth. And
someone did compare its performance; HashMap is faster, since tr13
optimizes for compactness and very low GC activity (single byte array
or ByteBuffer); see this discussion:
http://groups.google.com/group/ning-tr13-users/browse_thread/thread/a48bfd80a6880748
But tr13 is read-only (build once) data structure as well which limits
its use cases. That's why something similar to Krati could be useful,
allowing modifications, but still using chunk-based storage (from
which to deserialize as necessary, but outside of storage engine). But
it looks like Krati implementation does not allow in-memory-only mode,
which I would want?
It would be nice if that was available, but it probably would not be
easy to implement.
-+ Tatu +-
Very cool -- if I have time, I would like to explore that possibility.
If so, will send a note.
-+ Tatu +-
Good point, if all data fits in memory it would be nice to know
relative overhead.
> Thanks,
> Otis
> P.S.
> Tatu, we have some crazy mailing list overlap - wherever I go I see
> your name. :)
Hehe, I thought something along these lines too. :)
-+ Tatu +-