vy opened a new pull request #797:
URL: https://github.com/apache/logging-log4j2/pull/797


   * Replace `StringBuilderEncoder` (uses an internal thread-local) and 
`LockingStringBuilderEncoder` (uses locks) with custom 
`JsonTemplateLayout.StringBuilderEncoder` class implementing 
`Encoder<StringBuilder>` interface. This was made possible by making 
`TextEncoderHelper.encodeText()` public. This makes use of JTL recyclers and 
provides better allocation performance. For instance, if JTL is configured with 
thread-local recycler, each encoding request will trigger a single TLA, whereas 
previously it needed to do two: one for `JsonTemplateLayout.Context` and 
`StringBuilderEncoder`.
   * Add `CharSequence` specialization in `MessageResolver`.
   * Improve troubleshooting experience by replacing lambdas with classes in 
`TemplateResolvers`.
   * Improve locality and branching in `TemplateResolvers`.
   * Improve JMH tests.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to