Skip to content

Split Suffix Table optimisation - #152

Open
frozenspider wants to merge 2 commits into
mainfrom
fs/gkr-split-suffix-table
Open

frozenspider wants to merge 2 commits into
mainfrom
fs/gkr-split-suffix-table

Conversation

@frozenspider

@frozenspider frozenspider commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Resolves #58

Note that technically it's "prefix table" due to 387c9e7 🙂

Benchmarking sha256-chain, 600 blocks (GKR shape (t=7, s=17)):

What Before, 1 thread After, 1 thread Before, 5 threads After, 5 threads
Prove GKR (total) ~138 ms ~122 ms ~104 ms ~74 ms
Prove GKR/Build eq tables ~15.5 ms ~0.14 ms ~25.8 ms ~0.15 ms
Prove GKR/coefficient accumulation ~61.4 ms ~61.0 ms ~33.0 ms ~32.8 ms
Prove GKR/rest ~60.7 ms ~60.7 ms ~45.3 ms ~41.5 ms

Instead of storing a dense eq table (128 MiB in the benchmark above), we now store low/high tables (~160 KiB together), so RSS rise inside Prove GKR (5 threads) went down from 254 MiB to 128 MiB.

Note on completeness criteria defined in #58:
I didn't implement a tests pinning proofs being byte-to-byte identical to unsplit one as that seems excessive, can do that it if necessary.

@frozenspider
frozenspider force-pushed the fs/gkr-split-suffix-table branch from 7dc862e to 3d4f8b9 Compare November 23, 2026 14:41
@frozenspider frozenspider changed the title [WIP] Split Suffix Table optimisation Split Suffix Table optimisation Nov 23, 2026
@frozenspider
frozenspider requested a review from xrvdg November 23, 2026 14:46
@frozenspider
frozenspider marked this pull request as ready for review November 23, 2026 14:47
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.

Split Suffix Table optimisation

1 participant