A specialized JSON renderer that can render Bytes (Chars or Bytes) directly
to a java.io.Writer or java.io.OutputStream
Note that we use an internal ByteBuilder to buffer the output internally
before sending it to out in batches. This lets us benefit from the high
performance and minimal overhead of ByteBuilder in the fast path of
pushing characters, and avoid the synchronization/polymorphism overhead of
out on the fast path. Most outs would also have performance
benefits from receiving data in batches, rather than elem by elem.
A specialized JSON renderer that can render Bytes (Chars or Bytes) directly to a java.io.Writer or java.io.OutputStream
Note that we use an internal
ByteBuilder
to buffer the output internally before sending it to out in batches. This lets us benefit from the high performance and minimal overhead ofByteBuilder
in the fast path of pushing characters, and avoid the synchronization/polymorphism overhead of out on the fast path. Most outs would also have performance benefits from receiving data in batches, rather than elem by elem.