Hi,
I was wondering if there is some kind of "String" pooling possible with Jackson, if it might be a good idea to add support for it, or if thats more of a case for a module?
The use case is to parse large amounts of similar json documents into memory. As the keys are always the same, they end up taking a lot of memory when de-serializing to Map<String, Object>, but I assume same holds true for JsonNodes.
I searched a bit and could not find if it was ever discussed to add some sort of caching level for keys (possibly also for values, but keys are much more obvious), which during de-serialization realizes that the (immutable) value is identical to one which has been read already.
I am not voting for String.intern() as it has its own problems, maybe some pluggable Key Cache?
Rationale is that this way one could hold on many more deserialized documents in memory.
Fabian