Skip to content

Skip empty channel pool partitions during reap#2262

Open
pavel-ptashyts wants to merge 1 commit into
AsyncHttpClient:mainfrom
maygemdev:perf/skip-empty-pool-partitions
Open

Skip empty channel pool partitions during reap#2262
pavel-ptashyts wants to merge 1 commit into
AsyncHttpClient:mainfrom
maygemdev:perf/skip-empty-pool-partitions

Conversation

@pavel-ptashyts

@pavel-ptashyts pavel-ptashyts commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • skip idle-reaper scans for channel pool partition deques that are already empty
  • keep existing debug accounting and non-empty partition reap behavior unchanged

Verification

  • ./mvnw -pl client -DskipTests compile
  • ./mvnw -pl client -Dtest=DefaultChannelPoolTest test

Attribution

Codex on behalf of Pavel Ptashyts

Skip idle-reaper processing for partition deques that are already
empty. This keeps the cleaner from creating an iterator for empty
retained partitions while preserving existing debug accounting and all
non-empty reap behavior.

Codex on behalf of Pavel Ptashyts

Co-Authored-By: Codex <codex@openai.com>
@pavel-ptashyts
pavel-ptashyts force-pushed the perf/skip-empty-pool-partitions branch from b15f7bb to 4dad246 Compare July 20, 2026 08:50
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