Repository navigation
Conversation
|
The AffinityPool gives me better number than the ForkJoinPool on my local pc |
| response.map(_.addAttribute(Http2.streamId, streamIdHeader)) | ||
| } | ||
| case None => response | ||
| } |
There was a problem hiding this comment.
@pjfanning Should I extract these commits one by one by one as seperated PR?
There was a problem hiding this comment.
I'm ok with leaving this as is. I'm hoping that other people will review this but if not, I'll ok this in a few days.
820263f to
8abbce3
Compare
|
@He-Pin could you fix the scalafmt and look into the test failure in CI? |
|
Nice investigation! I haven't looked at all points but "Double ExecutionContext dispatch: handleWithStreamIdHeader wrapped the user handler call in Future { }, adding an unnecessary EC dispatch hop on top of mapAsyncUnordered's own scheduling" was an explicit feature. The question is how |
|
I’ve considered that, too; it would help avoid heavier renewal overhead for users. However, it’s not very friendly to the |
8abbce3 to
8c39889
Compare
Motivation: Reduce redundant work in the HTTP/2 request and response pipeline without changing dispatcher isolation or wire-level scheduling. Modification: Keep application code on its dispatcher and avoid re-dispatching completed responses. Share handler recovery, consolidate frame and stream-state transitions, and drain continuation fragments without replacing the outlet handler. Preserve the current main branch's settings acknowledgment, stream cleanup, and flow-control ordering. Result: Preserve the handler contract and normal request/response behavior with less per-message allocation. Do not change header parse caching or DATA/trailer batching and make no end-to-end throughput claim. References: Apache Pekko HTTP apache#1081
8c39889 to
01ae156
Compare
Motivation: Reduce redundant work in the HTTP/2 request and response pipeline without changing dispatcher isolation or wire-level scheduling. Modification: Keep application code on its dispatcher and avoid re-dispatching completed responses. Share handler recovery, consolidate frame and stream-state transitions, and drain continuation fragments without replacing the outlet handler. Preserve the current main branch's settings acknowledgment, stream cleanup, and flow-control ordering. Result: Preserve the handler contract and normal request/response behavior with less per-message allocation. Do not change header parse caching or DATA/trailer batching and make no end-to-end throughput claim. References: Apache Pekko HTTP apache#1081
01ae156 to
06c6d2c
Compare
Motivation
Reduce avoidable per-request and per-frame work without changing where application handlers run or how HTTP/2 connections drain.
Modification
Result
The HTTP/2 dispatcher contract, wire ordering and header parsing stay unchanged. The proposed secondary header-parse cache and DATA/trailer coalescing are out of scope for this revision: they need separate evidence for admission, retention and graceful draining respectively. The earlier end-to-end benchmark numbers do not apply to this revision; no numerical throughput claim is made.
Tests
References