Skip to content

perf: eliminate redundant BigUint multiplications in Fp2MulSyscall#450

Merged
eigmax merged 1 commit intoProjectZKM:mainfrom
eeemmmmmm:optimize-fp2-mul-biguint
Feb 15, 2026
Merged

perf: eliminate redundant BigUint multiplications in Fp2MulSyscall#450
eigmax merged 1 commit intoProjectZKM:mainfrom
eeemmmmmm:optimize-fp2-mul-biguint

Conversation

@eeemmmmmm
Copy link
Contributor

Each BigUint multiplication was computed 2-3 times in the Fp2 mul syscall. Cached the four products (ac0bc0, ac1bc1, ac0bc1, ac1bc0) in variables. Reduces BigUint multiplications from 10 to 4 per syscall invocation.

@eigmax eigmax merged commit 7fa84fb into ProjectZKM:main Feb 15, 2026
3 checks passed
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