perf(release): a release's deltas are made at once, one per base #2606
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2606
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:perf/parallel-deltas"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
longshot-builder dev release deltasmakes each base's delta one after the other:zstd -19 --long --patch-from, then undoes it to check it gives the full file back. In nightly-831 (run 54970) that took about 1.7 min per base, so 3.5 min for its two bases, between the dry runs and the uploads. That's about a quarter of a warm Linux job.Each base now gets its own thread, so on the release runner's 2 cores the two deltas take about as long as one. Nothing else changes: the same zstd command, the same check, the manifest's deltas still in their
fromorder, and the log lines in that order too.Read
builder/crates/longshot-builder/src/dev/release_deltas.rs,deltas.Testing
Tested: through the job queue:
cargo test -p longshot-builderfor the deltas and bases (15 pass),cargo clippy -D warningsandcargo fmtclean. The next nightly's log is the real test: both "delta from" lines should come within about two minutes of the dry runs.Still to test: the next nightly's deltas step.
Measurements
Expected: about 1.5–2 min saved per release job, from run 54970's two deltas at about 1.7 min each.
Risks
Peak memory during the deltas roughly doubles (two zstd
--longprocesses at once). Revert to undo.Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named). (this PR's CI runs it)main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e1RP1VgcWpgA7Kq6ec
Possibly related, for context:
WIP: perf(release): a release's deltas are made at once, one per baseto perf(release): a release's deltas are made at once, one per baseerlo68 referenced this pull request2026-11-26 07:05:36 +00:00