Prior to this commit, references to `JsonGenerator` and `ByteArrayBuilder` were not closed/released within codecs calls. This prevents Jackson from reusing more efficiently shared memory resources. This commit properly closes/releases Jackson resources in Spring MVC, Spring WebFlux and Spring Messaging codecs. A benchmark on WebFlux codecs (in both single value/streaming mode) shows significant throughput and allocation improvements for small payloads. Closes gh-25910
19 lines
642 B
XML
19 lines
642 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<Configuration status="WARN">
|
|
<Appenders>
|
|
<Console name="Console" target="SYSTEM_OUT">
|
|
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{1.} - %msg%n" />
|
|
</Console>
|
|
</Appenders>
|
|
<Loggers>
|
|
<Logger name="org.springframework.web" level="warn" />
|
|
<Logger name="org.springframework.beans" level="warn" />
|
|
<Logger name="org.springframework.binding" level="warn" />
|
|
<Logger name="org.springframework.http" level="warn" />
|
|
<Logger name="org.springframework.remoting" level="warn" />
|
|
<Root level="error">
|
|
<AppenderRef ref="Console" />
|
|
</Root>
|
|
</Loggers>
|
|
</Configuration>
|