Skip to content

perf: skip cleanup-queue churn when no closed streams are due - #269

Open
anmonteiro wants to merge 2 commits into
masterfrom
perf/scheduler-cleanup-peek
Open

perf: skip cleanup-queue churn when no closed streams are due#269
anmonteiro wants to merge 2 commits into
masterfrom
perf/scheduler-cleanup-peek

Conversation

@anmonteiro

Copy link
Copy Markdown
Owner

Summary

  • add next_cleanup_epoch cache to the scheduler root
  • gate tick_closed_streams so it avoids queue pop/reinsert work when the next expiry is still in the future
  • preserve existing expiry semantics while reducing per-read overhead in the common case

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