Files
joshua-spacetime 4e842f0474 Merge durability actors to reduce per-tx scheduler handoffs (#4767)
# Description of Changes

Before this change, local durability had two workers. The first worker
reordered slightly out-of-order submissions by `TxOffset` and
materialized the commitlog payload, and then forwarded the payload to
the 2nd worker which wrote to the commitlog.

The problem was that the first worker did such little work that it was
mostly parked, and so every transaction would pay the cost of waking it
up. And for very high throughput workloads, this cost was significant
and on the critical path - the database thread.

This patch merges the two workers so that the database thread feeds a
mostly non-idle task.

# API and ABI breaking changes

N/A

# Expected complexity level and risk

I'll call it a `3` mainly because it touches the durability layer in
some capacity, although overall it's a simplification since it removes
the transaction reordering logic that previously existed to paper over a
race condition that @kim had originally fixed in #4661.

# Testing

Pure refactor
2026-04-13 21:08:57 +00:00
..
2025-08-12 18:20:58 +00:00

⚠️ Internal Crate ⚠️

This crate is intended for internal use only. It is not stable and may change without notice.