]
Dan Berindei updated ISPN-11231:
--------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
Transcoder lookup is inefficient
--------------------------------
Key: ISPN-11231
URL:
https://issues.redhat.com/browse/ISPN-11231
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 9.4.17.Final, 10.1.1.Final
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Major
Fix For: 11.0.0.Alpha1
{{EncoderRegistryImpl}} stores transcoders in a set, without any lookup optimization
because it assumes the number of transcoders is small.
However, {{InternalCacheFactory.bootstrap()}} registers a "different"
{{TranscoderMarshallerAdapter}} for each cache, even though they all delegate to the same
global marshaller.
I believe the global marshaller transcoder adapter should be registered only once in
{{EncoderRegistryFactory}}, and ideally we should have a way of looking up transcoders by
media types.