You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
perf(dash): cheaper Dark Gravity Wave check per header #1431
BlockHeaderValidator calls next_work_required for every header (dash-spv/src/validation/header.rs). dark_gravity_wave recomputes U256 arithmetic over a 24-block window each time, and the U256 div_rem from bitcoin-internals is bit-serial. At opt-level 0 this is about 40% of the header phase CPU.
Make the per-header check cheaper, for example by not recomputing the window from scratch or by using a word-based division.
Activity
num%perf: divide `Arith256` by `u64` with schoolbook division (#138)