Commit 4cfd3df
committed
perf(utxo): read record identities directly
Hash-table probes and rehashes only need the txid prefix or txid, but the old accessors decoded output-count metadata on every call. Read those fixed identity bytes from the validated record header instead.
A 100,000-record v4 snapshot fixture ran 1.97x to 2.06x faster in forward and reverse 20-run comparisons; Callgrind instruction reads fell 54.3%.1 parent fffda74 commit 4cfd3df
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
371 | 373 | | |
372 | 374 | | |
373 | 375 | | |
374 | | - | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
375 | 379 | | |
376 | 380 | | |
377 | 381 | | |
| |||
0 commit comments