Warm-up mark: keyed on victory.exe's length and modified time, not its bytes hashed at every start #924
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/924"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 0xkn0wh3r3 on 2026-11-28T09:09:41Z.
Why
Every
victory playstart read and hashed the whole ofvictory.exe(11 MB) just to name its warm-up mark (%LOCALAPPDATA%\victory\warmed\<hash>). That took about 7.5 ms per start, on every start, to answer one question: has this build been warmed up yet?What
warmup_marknow names the markwarmed\<length>-<modified time>: the exe's length in bytes and its last-write time (in 100 ns units since 1970).copy), so it keeps the mark, as before.Tests
play::tests::a_rebuilt_exe_has_a_warmup_mark_of_its_own:play::tests::bench_warmup_mark(ignored), on an 11 MB file, 5 rounds alternating with the old read-and-hash, 21 calls each:CI steps run locally on this branch:
cargo clippy --workspace --all-targets --locked -- -D warnings: passes.--all-features: passes.cargo test --workspace --locked --no-fail-fast: 1,125 passed, 2 failed, 50 ignored. The 2 failures are in crates this PR doesn't touch, and both pass 3 out of 3 when run alone; the machine was fully loaded at the time:threads::tests::exit_ends_the_other_threads_firstwatch::tests::writes_in_partly_committed_view_blocks_are_reportedClippy: the four findings that stop CI on main (Rust 1.98)is the same commit as in #816 and #819. Without it,mainitself fails clippy. Drop it ifmainfixes them first.Not covered: not yet tried with a real rebuild and play start. The test sets the modified times by hand.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.