You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While Jackson is the de facto JSON serialization library in the Java world and log4j2-logstash-layout enjoys its great performance, flexibility, and customization features, it is currently the slowest chain in the entire serialization pipeline. Given log4j2-logstash-layout only serializes LogEvents into JSON, a custom JSON emitter can very well be implemented in a pretty straightforward way.
Pros
No external (required) dependency
Faster serialization
Cons
A byte[] recycler will need to be implemented to avoid GC
Jackson is still needed as an optional dependency while serializing Messages that are not SimpleMessage
null entry elimination might need to be dropped (difficult to get right)
@mkedwards Would you (or your company) be interested in sponsoring such an effort?
The text was updated successfully, but these errors were encountered:
While Jackson is the de facto JSON serialization library in the Java world and
log4j2-logstash-layout
enjoys its great performance, flexibility, and customization features, it is currently the slowest chain in the entire serialization pipeline. Givenlog4j2-logstash-layout
only serializesLogEvent
s into JSON, a custom JSON emitter can very well be implemented in a pretty straightforward way.Pros
Cons
byte[]
recycler will need to be implemented to avoid GCMessage
s that are notSimpleMessage
null
entry elimination might need to be dropped (difficult to get right)@mkedwards Would you (or your company) be interested in sponsoring such an effort?
The text was updated successfully, but these errors were encountered: