Skip to content

perf: pool scratch header encoders and use zero-copy payload scheduling - #267

Open
anmonteiro wants to merge 1 commit into
masterfrom
perf/header-buffer-pool
Open

perf: pool scratch header encoders and use zero-copy payload scheduling#267
anmonteiro wants to merge 1 commit into
masterfrom
perf/header-buffer-pool

Conversation

@anmonteiro

Copy link
Copy Markdown
Owner

Summary

  • replace copy-based header payload writes with schedule_bigstring-based iovec scheduling for HEADERS, CONTINUATION, and PUSH_PROMISE payloads
  • add a small pool of scratch header encoders in Serialize.Writer
  • only reclaim in-flight scratch encoders once writer output is fully drained, preventing buffer aliasing while avoiding per-message copies

Testing

  • dune build --no-buffer @runtest-test_h2 @runtest-test_h2_client @runtest-test_h2_server @runtest-test_priority

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant