Skip to content

docs(design): per-thread buffer pool caches (#1370) - #3872

Merged
oferchen merged 1 commit into
masterfrom
worktree-agent-a809846b364a05943
May 7, 2026
Merged

oferchen merged 1 commit into
masterfrom
worktree-agent-a809846b364a05943

Conversation

@oferchen

@oferchen oferchen commented May 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds docs/design/per-thread-buffer-pools.md proposing a fixed-depth per-thread cache layered over the existing shared ArrayQueue (Centralize program branding helpers #1329).
  • Documents the zero-contention vs idle-memory trade-off, periodic drain to shared pool, and thread-exit cleanup.
  • Cites the sharded central queue layout in Track module bandwidth limiter changes #1271 (docs/design/buffer-pool-sharding.md) as the documented fallback.

Test plan

  • Design-only change; no code paths touched.
  • Verify the doc renders correctly on GitHub.
  • Confirm CI doc/lint workflows pass.

Closes #1370.

Propose promoting the single-slot thread_local cache (#1329) into a
fixed-depth per-thread cache to keep most acquire/return cycles off the
shared ArrayQueue, with overflow falling through to the existing pool.
Documents the idle-memory trade-off and cites the sharded-queue
alternative in #1271 as fallback.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 7, 2026
@oferchen
oferchen merged commit 41ceed3 into master May 7, 2026
8 checks passed
@oferchen
oferchen deleted the worktree-agent-a809846b364a05943 branch May 8, 2026 03:48
oferchen added a commit that referenced this pull request May 18, 2026
Propose promoting the single-slot thread_local cache (#1329) into a
fixed-depth per-thread cache to keep most acquire/return cycles off the
shared ArrayQueue, with overflow falling through to the existing pool.
Documents the idle-memory trade-off and cites the sharded-queue
alternative in #1271 as fallback.
oferchen added a commit that referenced this pull request Aug 24, 2026
Propose promoting the single-slot thread_local cache (#1329) into a
fixed-depth per-thread cache to keep most acquire/return cycles off the
shared ArrayQueue, with overflow falling through to the existing pool.
Documents the idle-memory trade-off and cites the sharded-queue
alternative in #1271 as fallback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant