jackson-core icon indicating copy to clipboard operation
jackson-core copied to clipboard

consider changing InternCache

Open pjfanning opened this issue 1 year ago • 11 comments

Clears cache when limit of 100 reached. Can cause blocking - eg https://stackoverflow.com/questions/75616007/at-com-fasterxml-jackson-core-util-interncache-interninterncache-java54-in-bl

LRUMap in jackson-databind used to do this but has now been changed to be a proper LRU cache.

InternCache can't use LRUMap but we could consider moving that class to jackson-core.

Alternatives include allowing InternCache to be configured. Size could be configurable or the underlying map implementation could be pluggable.

Also open is #726 and #998

pjfanning avatar Mar 06 '23 23:03 pjfanning