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

chore(avm): Remove initialization for non-derived polynomials #10103

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

jeanmon
Copy link
Contributor

@jeanmon jeanmon commented Nov 21, 2024

Resolves #10096

@jeanmon jeanmon marked this pull request as ready for review November 21, 2024 14:00
@jeanmon jeanmon force-pushed the jm/10096-uninitialize-non-derivative-polys branch from 409b0c2 to 34878d6 Compare November 21, 2024 17:20
@fcarreiro fcarreiro self-requested a review November 21, 2024 19:31
@jeanmon
Copy link
Contributor Author

jeanmon commented Nov 22, 2024

Some benchmarks on the "parallel_for" code portion inside of "circuit_builder/init_polys_unshifted".

On mainframe, without any hardcoded set for HARDWARE_CONCURRENCY env variable:

4 measurements:

PR | MASTER
19 MS | 75 MS
19 MS | 21 MS
18 MS | 25 MS
18 MS | 32 MS

HARDWARE_CONCURRENCY = 4

3 measurements:

PR | MASTER
45 MS | 65 MS
49 MS | 84 MS
51 MS | 64 MS

@@ -284,6 +284,14 @@ template <typename Fr> class Polynomial {
return p;
}

/**
* @brief A factory to construct a polynomial where parallel initialization is
Copy link
Contributor

Choose a reason for hiding this comment

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

A factory! :O ! !

:D

@jeanmon jeanmon merged commit c6fdf4b into master Nov 22, 2024
70 checks passed
@jeanmon jeanmon deleted the jm/10096-uninitialize-non-derivative-polys branch November 22, 2024 14:39
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.

AVM circuit optimization: consider using parallel polynomial constructor
2 participants