Your free trial has ended.
Try the live demo or log in .
Created
By: ValentinHirschi <valentin.hirschi@gmail.com>
journal: an explicitly set byte bound closes its windows greatest first The byte bound (9039606a3) cuts a closure at the greatest key it kept and drops the prepared steps below it. The work-stealing closure steps depth first on each worker, so at a cut most stepped keys lie below the kept ones: at a 1 GiB bound L6d1 / d5 re-stepped 11-23 M prepared steps (+46 / +71 % walk). Under a bound set by RUSTRED_ORDERED_JOURNAL_WINDOW_BYTES a closure now steps its keys greatest first: every key found spawns one task and a task steps the greatest key due when it runs (a shared heap; no barrier), so a cut drops at most what is in flight. Measured at 1 GiB (8 threads, 4,096-key windows, digests equal): L6d1 32.94 -> 30.22 GiB at +6.3 % walk (0 steps dropped), d5 39.06 -> 31.38 GiB at +1.4 % (136 dropped). The ordering costs ~9 % where the bound never cuts, so the default bound (the job's memory / 8, which cuts only huge windows) keeps the work-stealing closure (L6d1 / d5 +0.7 / +0.5 %; T276 s14 75.4 -> 59.6 GiB at -5 % walk). RUSTRED_ORDERED_JOURNAL_CLOSURE_ORDER=ordered|steal chooses either. The byte-bound test runs both orders. Also rustfmt of the bound's lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>