Skip to content

chore(engine): promote dashmap to runtime dep for BR-3j.c - #4612

Merged
oferchen merged 1 commit into
masterfrom
chore/engine-promote-dashmap-runtime-dep
May 20, 2026
Merged

oferchen merged 1 commit into
masterfrom
chore/engine-promote-dashmap-runtime-dep

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • BR-3j.b (fix(daemon): fix MOTD format, module listing, and auth digest #2504): Promotes dashmap from [dev-dependencies] to [dependencies] in crates/engine/Cargo.toml.
  • Unblocks the BR-3j.c source-code migration that replaces the Mutex<HashMap<FileNdx, Arc<Mutex<FileSlot>>>> at crates/engine/src/concurrent_delta/parallel_apply.rs:252 with DashMap.
  • Placement is unconditional (not cfg(unix), not feature-gated) per the BR-3j.a audit so the parallel-receive-delta path always has runtime access.

Background

BR-3j.a (merged in PR #4600, audit docs/audits/br-3j-a-dashmap-vs-sharded-2026-05-20.md) selected DashMap over sharded-slab for this contention site. The workspace already declares dashmap = "6.1" in [workspace.dependencies] (used by daemon's concurrent-sessions feature), so this change is a one-line promotion - the resolved version stays at 6.1.0.

No source-code changes in this PR

This is a Cargo-manifest-only change to set up the BR-3j.c-f chain. The actual Mutex<HashMap> to DashMap migration lands in BR-3j.c so reviewers can audit the dependency promotion separately from the call-site refactor.

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --all-features --no-deps -- -D warnings
  • cargo metadata resolves cleanly (dashmap 6.1.0)
  • CI: fmt+clippy, nextest (stable), Windows, macOS, Linux musl

BR-3j.a (PR #4600) selected DashMap to replace the
`Mutex<HashMap<FileNdx, Arc<Mutex<FileSlot>>>>` at
`crates/engine/src/concurrent_delta/parallel_apply.rs:252`. Today
`dashmap` is only an engine dev-dep; this commit promotes it to
`[dependencies]` (unconditional, matching the audit recommendation)
so BR-3j.c can perform the source migration in a follow-up PR.

No source-code changes here.
@github-actions github-actions Bot added the chore label May 20, 2026
@oferchen
oferchen merged commit 0b060af into master May 20, 2026
56 checks passed
@oferchen
oferchen deleted the chore/engine-promote-dashmap-runtime-dep branch May 20, 2026 22:48
oferchen added a commit that referenced this pull request Aug 24, 2026
…4612)

BR-3j.a (PR #4600) selected DashMap to replace the
`Mutex<HashMap<FileNdx, Arc<Mutex<FileSlot>>>>` at
`crates/engine/src/concurrent_delta/parallel_apply.rs:252`. Today
`dashmap` is only an engine dev-dep; this commit promotes it to
`[dependencies]` (unconditional, matching the audit recommendation)
so BR-3j.c can perform the source migration in a follow-up PR.

No source-code changes here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant