Performance degradation issue that happens on API Root init due to Default object mapper instantiation.
okyzym opened this issue · 3 comments
okyzym commented
could you please take a look at this line
it leads to the default serialiser instantiation notwithstanding the custom serialiser can be passed to api builder. It leads to extra resources consuming
ResponseSerializer serializer = ResponseSerializer.of(); <--- creates ObjectMapper instance
this.serializer = () -> serializer;
perhaps it would be better to change it to
this.serializer = () -> ResponseSerializer.of();
okyzym commented
ApiRootBuilder.of().withSerializer(myCustomSerialiser)..
jenschude commented
True that. We will change it.