Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FRI uses barycentric formula to evaluate poly #140

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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