-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
most-wantedTag to indicate that there is heavy user +1'ing actionTag to indicate that there is heavy user +1'ing action
Milestone
Description
(note: follow up on #2456 )
Currently most of caching Jackson does internally (for reusing things like serializers, deserializers, to avoid re-resolving some generic types and so on) is internally defined with settings that can not be changed. But it would make sense to expose an interface, like cache provider, that could be changed to override either some parameters (sizes for default caches) or even cache implementations if that matters. This would also allow things like instrumentation (for cache hit rates) and using time-based eviction, dynamic sizing and so on.
Known caches are in:
DeserializerCache
(added via Add a way to configureDeserializerCache
Jackson uses #4101)SerializerCache
(added via Add a way to configureSerializerCache
Jackson uses #4111)TypeFactory
(added via Add a way to configureTypeFactory
Jackson uses #4115)RootNameLookup
(small -- probably no need to configure)JacksonAnnotationIntrospector
(_annotationsInside
) -- (tiny, likely no need to configure either)
Some modules may add their own caches as well although not many do; and so configuration of those can be separate from databind.
JooHyukKim and iProdigy
Metadata
Metadata
Assignees
Labels
most-wantedTag to indicate that there is heavy user +1'ing actionTag to indicate that there is heavy user +1'ing action