Stream the launcher executable into the preload hash #4915

Open
github-bot wants to merge 1 commit from github-bot/gh-4914 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 13:43 UTC · original
andrewpozdnakov7-jpg:codex2/fix/stream-launcher-hash → main · +3 −2 · 1 files · 1 commits · open

What it changes

Startup hashes the launcher executable to find its shader preload marker. Reading the whole file into a Vec temporarily allocates a buffer the size of the executable. This change feeds the file to the same BLAKE3 hash in chunks and keeps the same marker path.

How it was tested

  • A focused Windows Rust fixture called the exact mark_path from main 5fabb46e and from eb5525d6437aab6794df83101f06ee45c0c24bb3. Release e1251c31 has the same baseline function.
  • On a synthetic file of 64 MiB plus 37 bytes, both versions returned the same marker path. The largest heap allocation measured by the fixture went from 67,108,901 bytes to 172 bytes.
  • Small and empty files produced matching paths, and a missing file returned None in both versions. cargo xtask policy --staged accepted the one changed file.
  • Main's CI check has five existing Clippy errors tracked in #4708.

Checked for overlap

  • Searched open and closed PRs and issues for launcher and preload marker hashing, and open PRs for changes to play.rs. Related startup work in #4486, #4889 and #4908 combines cleanly with this patch in git merge-tree.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 13:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4914) `andrewpozdnakov7-jpg:codex2/fix/stream-launcher-hash` → `main` · +3 −2 · 1 files · 1 commits · open ## What it changes Startup hashes the launcher executable to find its shader preload marker. Reading the whole file into a `Vec` temporarily allocates a buffer the size of the executable. This change feeds the file to the same BLAKE3 hash in chunks and keeps the same marker path. ## How it was tested - A focused Windows Rust fixture called the exact `mark_path` from main `5fabb46e` and from `eb5525d6437aab6794df83101f06ee45c0c24bb3`. Release `e1251c31` has the same baseline function. - On a synthetic file of 64 MiB plus 37 bytes, both versions returned the same marker path. The largest heap allocation measured by the fixture went from 67,108,901 bytes to 172 bytes. - Small and empty files produced matching paths, and a missing file returned `None` in both versions. `cargo xtask policy --staged` accepted the one changed file. - Main's [CI check](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46563306780/job/142355972539) has five existing Clippy errors tracked in #4708. ## Checked for overlap - [x] Searched open and closed PRs and issues for launcher and preload marker hashing, and open PRs for changes to `play.rs`. Related startup work in #4486, #4889 and #4908 combines cleanly with this patch in `git merge-tree`. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 13:43:55 +00:00
github-bot changed title from [pr-performance][startup] Stream the launcher executable into the preload hash to Stream the launcher executable into the preload hash 2026-12-01 13:49:24 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/4915/head:github-bot/gh-4914'
git switch 'github-bot/gh-4914'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4914'
git switch 'github-bot/gh-4914'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4914'
git switch 'github-bot/gh-4914'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4914'
git switch 'main'
git merge --squash 'github-bot/gh-4914'
git switch 'main'
git merge --ff-only 'github-bot/gh-4914'
git switch 'main'
git merge 'github-bot/gh-4914'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4915
No description provided.