Skip to content

Parallelize lookup message collection#52

Merged
samuelburnham merged 1 commit into
mainfrom
sb/parallel-lookups
May 12, 2026
Merged

Parallelize lookup message collection#52
samuelburnham merged 1 commit into
mainfrom
sb/parallel-lookups

Conversation

@samuelburnham
Copy link
Copy Markdown
Member

Reduces lookup collection time from 8s to 719ms when proving lake exe bench-blake3 --num-hashes 1000 --input-size=1024 with 32 threads in Aiur

Replace the serial loop that computes per-lookup messages with a
rayon parallel iteration over a preallocated flat slice of lookup
references. Flattening serially first lets `collect` write straight
into the output Vec without tree-reducing worker buffers.
@samuelburnham samuelburnham force-pushed the sb/parallel-lookups branch from 139e4c4 to 80aba97 Compare May 12, 2026 18:07
@samuelburnham samuelburnham requested review from arthurpaulino and gabriel-barrett and removed request for arthurpaulino May 12, 2026 19:54
@samuelburnham samuelburnham enabled auto-merge (squash) May 12, 2026 19:54
@samuelburnham samuelburnham merged commit 65387a2 into main May 12, 2026
4 checks passed
@samuelburnham samuelburnham deleted the sb/parallel-lookups branch May 12, 2026 23:19
@arthurpaulino arthurpaulino mentioned this pull request May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants