Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Buffers in Jetty 8

It is for performance.  

When you start writing content, it initially goes into a buffer.  Once the response is committed, we need to generate a header, which can be of variable size.  So rather than moving the content up in it's buffer we use a separate header buffer and then to a gather write to write the headers and content as a single write.


On 18 September 2013 17:50, Polina Koleva <polina.n.koleva@xxxxxxxxx> wrote:
That's helpful. But I wonder why  jetty have two buffers - one for header and
one for body of request/response? Is that improve performance and how?


View this message in context:
Sent from the Jetty User mailing list archive at
jetty-users mailing list

Greg Wilkins <gregw@xxxxxxxxxxx>
Developer advice and support from the Jetty & CometD experts.
Intalio, the modern way to build business applications.

Back to the top