Look up rebuilt descriptor tables with a fast hash and an exact compare #34
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!34
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/34/head"
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?
@romainhedouin on GitHub · 2026-11-25 12:33 UTC · original
romainhedouin:perf/table-key→main· +64 −15 · 1 files · 1 commits · merged 2026-11-25 17:09 UTCFor each descriptor table it rebuilds, a draw first checks whether the list already built the same one, by hashing all its entries with SipHash. That is slow, and a hash collision would silently reuse the wrong descriptors. Now it uses a fast multiply-rotate hash and then compares the stored entries word for word: faster, and a collision now costs at most an extra copy, never wrong descriptors.
"Model benchmark" = the same logic copied into a standalone program and timed in release mode on a Mac, not in the game. Type-checked for Windows (
cargo clippy --target x86_64-pc-windows-msvc, with and without--all-features, no new warnings); not run. TouchesState::tableslike #33; whichever merges second needs a small rebase.🤖 Generated with Claude Code