Skip to content

Comments

perf: cache trusted setup G2#3322

Merged
rakita merged 2 commits intobluealloy:mainfrom
lisenokdonbassenok:perf/kzg-cache-trusted-setup
Jan 20, 2026
Merged

perf: cache trusted setup G2#3322
rakita merged 2 commits intobluealloy:mainfrom
lisenokdonbassenok:perf/kzg-cache-trusted-setup

Conversation

@lisenokdonbassenok
Copy link
Contributor

Cache the trusted setup G2 point using OnceLock so we don’t redo expensive decompression/deserialization on every verification; this matches the invariant nature of the setup data and keeps arkworks/blst behavior aligned.

@codspeed-hq
Copy link

codspeed-hq bot commented Jan 17, 2026

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing lisenokdonbassenok:perf/kzg-cache-trusted-setup (0f5ec99) with main (ecd3fc5)

Summary

✅ 173 untouched benchmarks

Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could potentially explain why we are slightly slower in benches for kzg.

Good find!

@rakita rakita merged commit 63ed9d8 into bluealloy:main Jan 20, 2026
31 checks passed
@github-actions github-actions bot mentioned this pull request Jan 20, 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