Speed up report creation for GPU crash logs with long DRED breadcrumbs #451

Open
HandshakeHackin wants to merge 1 commit from upstream-pr/451 into v26124
HandshakeHackin commented 2026-12-01 17:16:15 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-12-01T17:16:15Z.


What this changes

Search forwards for the most recent memory-trend record when summarizing a GPU log. A backwards search spent several seconds on long DRED breadcrumb lines. The change preserves the reported memory verdict.

Why

The player in #447 reports a 10–15 second wait when creating a report. The four public A750 logs in #448 gave me separate real inputs to profile.

Verification

On v26.12.4 and Linux PowerShell 7.4.19, the DRED-light digest took 4.55–5.61 seconds before and 0.043–0.101 seconds after. All 12 digest comparisons across the four logs were identical. All 19 digest suite checks passed, including the 40 MB case and new CRLF/LF cases.

Packing all four logs together took 8.35–10.98 seconds before and 2.62–3.05 seconds after, three runs per version. I decrypted each local report with a test key. All five entry names and contents matched across all six reports. No report was uploaded. Native Windows timing and the original player’s own input still need verification.

<!-- greyfinch-sync:PastiiJay/klbf-lab:issue:5590727028 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/451). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-12-01T17:16:15Z. --- ## What this changes Search forwards for the most recent memory-trend record when summarizing a GPU log. A backwards search spent several seconds on long DRED breadcrumb lines. The change preserves the reported memory verdict. ## Why The player in #447 reports a 10–15 second wait when creating a report. The four public A750 logs in #448 gave me separate real inputs to profile. ## Verification On v26.12.4 and Linux PowerShell 7.4.19, the DRED-light digest took 4.55–5.61 seconds before and 0.043–0.101 seconds after. All 12 digest comparisons across the four logs were identical. All 19 digest suite checks passed, including the 40 MB case and new CRLF/LF cases. Packing all four logs together took 8.35–10.98 seconds before and 2.62–3.05 seconds after, three runs per version. I decrypted each local report with a test key. All five entry names and contents matched across all six reports. No report was uploaded. Native Windows timing and the original player’s own input still need verification.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/451:upstream-pr/451'
git switch 'upstream-pr/451'

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.

git switch 'v26124'
git merge --no-ff 'upstream-pr/451'
git switch 'upstream-pr/451'
git rebase 'v26124'
git switch 'v26124'
git merge --ff-only 'upstream-pr/451'
git switch 'upstream-pr/451'
git rebase 'v26124'
git switch 'v26124'
git merge --no-ff 'upstream-pr/451'
git switch 'v26124'
git merge --squash 'upstream-pr/451'
git switch 'v26124'
git merge --ff-only 'upstream-pr/451'
git switch 'v26124'
git merge 'upstream-pr/451'
git push origin 'v26124'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
PastiiJay/klbf-lab!451
No description provided.