Skip to content

perf: restore system allocator by default - #100

Merged
zackees merged 1 commit into
mainfrom
perf/issue-93-revert-default-allocator
Aug 27, 2026
Merged

zackees merged 1 commit into
mainfrom
perf/issue-93-revert-default-allocator

Conversation

@zackees

@zackees zackees commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Closes #93
Part of #97

Outcome

Restore Rust system allocation as the production/default reld configuration. Retain exact crates.io mimalloc-pprof = 0.9.5 only as an optional dependency selected by the explicit mimalloc-pprof-profile and mimalloc-pprof-dhat diagnostic features.

Both diagnostics continue to use the same mimalloc_pprof::MiMalloc global allocator. Internal DHAT does not install a second allocator, so there is no duplicate-global-allocator or DHAT/mimalloc conflict.

Why this reverts the default

The correctness-gated allocator benchmark in PR #99 and run https://github.com/zackees/reld/actions/runs/33068576290 compared the pinned pre-change system allocator at e2d6be5a with the exact mimalloc candidate at e0868677.

All artifact and execution gates passed, but performance did not:

  • aggregate wall improvement: 0.000%, paired bootstrap 95% CI [-1.610%, +0.385%]
  • aggregate CPU improvement: 0.000%, 95% CI [-14.471%, +12.642%]
  • aggregate peak RSS improvement: -0.098%, 95% CI [-0.384%, +0.361%]
  • wall medians were identical for no-LTO (0.38s), ThinLTO (0.43s), and full-LTO (0.28s)

The declared decision was inconclusive_or_worse with keep_allocator=false. CPU also failed the uncertainty-aware non-regression gate. This PR applies that predeclared #97 policy as one causal allocator-selection change.

Raw evidence artifact: allocator-evidence-bacc628ae2f14f15db198b1587ce6e524edb3435, artifact ID 9645699405.

Validation

RED:

  • updated allocator config test failed because mimalloc remained unconditional.

GREEN:

  • allocator/benchmark suite: 59 passed
  • dependency contract check
  • Ruff
  • Cargo formatting
  • all-features Clippy with warnings denied
  • default, sampled-pprof, and internal-DHAT reld builds
  • independent clud-review: clean

Remote GitHub Actions must pass before merge. No local Docker was used.

@zackees
zackees merged commit 6ec92be into main Aug 27, 2026
13 checks passed
@zackees
zackees deleted the perf/issue-93-revert-default-allocator branch November 5, 2026 05:51
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.

Phase 1b: prove allocator artifact equivalence and benchmark/profile the Linux matrix

1 participant