upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts/export_github_metadata.py
diff options
context:
space:
mode:
authorbobcatchris <83428450+bobcatchris@users.noreply.github.com>2026-11-30 14:52:45 -0600
committerbobcatchris <83428450+bobcatchris@users.noreply.github.com>2026-11-30 14:53:03 -0600
commita0066d462b588b459c69bae1a130ef83e7951431 (patch)
tree7c24c6111a1e9f987a94cabc4f589112a8c074f5 /scripts/export_github_metadata.py
parentd8ca182407dce98069cf3a3fdf7dcce51a41beba (diff)
perf(d3d12/shader): open-addressing unique table for the BDD nodes
`Bools::unique` was a HashMap<(u32, Bool, Bool), Bool>: 17 bytes a slot at 44-87 % load and 19-39 bytes per node, and 11 % of the CPU time of the 500 slowest programs (the diagrams there hold about 1 M nodes and do not fit the cache). Replace it with open addressing over node numbers: a 4-byte slot (21-bit node number, 11-bit tag), load at most 1/2, linear probing, equality checked on the node itself. Nodes are made in the same order, so the structuriser's output is the same. The new test makes 400 000 random nodes over 40 variables, with the table growing from 1 024 slots to at least 262 144, and checks every one against a HashMap: the same triple gives the same node, a new triple the next number, and a second pass asks for them all again and gets no new node. Skipping the equality check on the node makes it fail. AI-assisted: Claude Sonnet 5.5 Co-authored-by: Cursor <cursoragent@cursor.com>
Diffstat (limited to 'scripts/export_github_metadata.py')
0 files changed, 0 insertions, 0 deletions