fork of gitlab.com/devnw/zig/thread-pool for zig 0.17
3 folders · 27 files

performance
security
superpowers
ALGORITHMS.md
api-reference.md
APPSEC_REVIEW_2026-04-15_src.md
APPSEC_REVIEW_2026-06-11_round2.md
APPSEC_REVIEW_2026-06-11_src.md
architecture.md
BENCHMARKS.md
BUG_2026-04-25_submitter_free_mask_shift_ub.md
codex-review-2026-04-14.md
DESIGN.md
examples.md
faq.md
GAP_ANALYSIS_RESOLVED.md
GAP_ANALYSIS.md
gap-closure-report-2026-04-16.md
getting-started.md
HANDOFF-2026-04-14.md
HANDOFF-2026-04-15.md
PERF_GAP_ANALYSIS.md
PERFORMANCE_TARGETS.md
PERFORMANCE_TRACKING.md
QUALITY_GAP_ANALYSIS.md
README.md
RUNTIME_COMPARISON.md
SCHEDULER_DECISION.md
TESTING.md
USAGE.md
README.md

thread-pool Documentation #

Documentation for setup, API usage, testing, benchmarking, algorithms, and performance history.

Start Here #

Architecture & Algorithms #

  • Architecture — component layout + ownership rules
  • Design — rationale, queue design, memory model, shutdown
  • Algorithms — mermaid diagrams for each pipeline (submit flow, worker loop, descriptor lifecycle, DescCache, Chase-Lev deque, RingQueue SPMC, Vyukov MPMC, wake coalescing, lane routing, watchdog, shutdown)
  • Scheduler Decision — variant-picking rubric

Testing & Benchmarks #

  • Testing — validation matrix, TSan, fuzz, stress gate
  • Benchmarks — scenario matrix, measurement protocol, current snapshot, A/B loop reference
  • Runtime Comparison — Zig vs Tokio vs Go same-host snapshot + analysis
  • Performance Tracking — long-form per-phase delta history

Security #

Gap Analyses #

Performance Archive #

Chronological (most recent first):

Handoffs & Reviews #