Skip to content

FRI uses barycentric formula to evaluate poly#140

Open
qizhou wants to merge 2 commits intoethereum:masterfrom
qizhou:fri_bary
Open

FRI uses barycentric formula to evaluate poly#140
qizhou wants to merge 2 commits intoethereum:masterfrom
qizhou:fri_bary

Conversation

@qizhou
Copy link
Contributor

@qizhou qizhou commented Jan 19, 2023

This PR optimizes the polynomial evaluation in FRI using the Barycentric formula (in coset) with linear complexity without Lagrange interpolation. The performance of generating a proof in python is twice that of the Lagrange one. Below is the perf number on my machine (MacBook):

Degree = 4096, Values = 16384
Before: 0.2776
After: 0.1437s

Degree = 4096, Values = 65536
Before: 1.0076s
After: 0.5226s

The performance gain may be larger if we reduce g(x, x^n) = f(x) with n = 8 or larger.

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.

1 participant