-
Notifications
You must be signed in to change notification settings - Fork 0
Grinding: batch nonce tests with SIMD and ordered parallel search #127
Copy link
Copy link
Open
Labels
difficulty: mediumBounded multi-kernel or representation integration.Bounded multi-kernel or representation integration.enhancementNew feature or requestNew feature or requestgrindingOptimization area: grinding.Optimization area: grinding.optimization-portSeptember 2026 audited optimization backlog from BitZ-PoC.September 2026 audited optimization backlog from BitZ-PoC.parallelismOptimization area: parallelism.Optimization area: parallelism.simdOptimization area: simd.Optimization area: simd.urgency: medUseful targeted improvement after the core prerequisites.Useful targeted improvement after the core prerequisites.
Description
Activity
Metadata
Metadata
Assignees
Labels
difficulty: mediumBounded multi-kernel or representation integration.Bounded multi-kernel or representation integration.enhancementNew feature or requestNew feature or requestgrindingOptimization area: grinding.Optimization area: grinding.optimization-portSeptember 2026 audited optimization backlog from BitZ-PoC.September 2026 audited optimization backlog from BitZ-PoC.parallelismOptimization area: parallelism.Optimization area: parallelism.simdOptimization area: simd.Optimization area: simd.urgency: medUseful targeted improvement after the core prerequisites.Useful targeted improvement after the core prerequisites.
Accelerate proof-of-work nonce search with SIMD batches and ordered parallel ranges while returning the same minimum valid nonce as the serial implementation. This issue owns the search kernel, not grinding difficulty or security-profile selection.
Sources
BitZ challenger nonce search is normative for the target contract. PoC deterministic SIMD/parallel search is implementation reference only; preserve target field, layout, transcript and security requirements unless this issue explicitly introduces a versioned protocol.
Current and proposed behavior
The target tests consecutive nonces through a serial hash loop. The reference batches single-block BLAKE3 compressions in NEON or AVX2 lanes, then uses monotonically allocated ranges with a global minimum hit. Reuse that structure only after matching the target's exact hash preimage and success predicate.
Required scope
Only grinding time improves. Eight SIMD lanes or additional workers do not guarantee equivalent wall-time speedups; actual gains depend on hashing throughput, synchronization and difficulty. No weaker target or reduced number of checks is permitted.
Done when
Dependencies and coordination
No prerequisite optimization port. Coordinate with #76.