Prompted by some folks at $dayjob, I have been looking at the
performance of Tomcat's HTTP/2 implementation using [1]
Initially, I was seeing ~79k req/s.
Restoring lazy init for the StreamInputBuffer increased that to ~106k req/s.
Moving the HttpParser from Processor to Protocol increased that to ~108k
req/s.
Now I am looking at recycling and reusing the coyote request and
response. That increases throughput to 124k req/s.
Given the significant performance increase I am considering the following:
- switching HTTP/2 to recycle and reuse coyote request and response
objects by default
- providing an option to restore the current behaviour of creating a new
coyote request and response object for every HTTP/2 stream
Thoughts?
Mark
[1] https://github.com/sdeleuze/spring-boot-http2
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org