Fix performance degradation in sinks due to slow writer in hot path #12227
Labels
domain: codecs
Anything related to Vector's codecs (encoding/decoding)
domain: performance
Anything related to Vector's performance
sink: socket
Anything `socket` sink related
After integrating
encoding::Encoder
with sinks, performance dropped by roughly 20% when using JSON encoding: (e.g. forsocket
#10684 (comment), or forloki
#12558 (comment)).As evident by #10684 (comment) this can be explained by poor writer performance in the encoding hot path. Related issues: #11341 and tokio-rs/bytes#531.
The text was updated successfully, but these errors were encountered: