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

perf: avoid copying on group operations #383

Merged
merged 21 commits into from
Apr 16, 2024

Conversation

chokobole
Copy link
Contributor

@chokobole chokobole commented Apr 6, 2024

Description

This PR avoids copying on semigroup operations, which are Sub(), Div(), Negative() and Inverse().

@chokobole chokobole force-pushed the perf/avoid-copying-on-group-operations branch 10 times, most recently from 5174f25 to 6b8f82d Compare April 12, 2024 04:46
@chokobole chokobole marked this pull request as ready for review April 12, 2024 04:52
Copy link
Contributor

@dongchangYoo dongchangYoo left a comment

Choose a reason for hiding this comment

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

LGTM

@chokobole chokobole force-pushed the perf/avoid-copying-on-group-operations branch 2 times, most recently from 7ccddfe to 23cc757 Compare April 13, 2024 08:21
Copy link
Contributor

@ashjeong ashjeong left a comment

Choose a reason for hiding this comment

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

57ed88e - I see differences in checks of l_evaluations and r_evaluations size. Is this intended?
Multilinear_extension_ops - CHECK_EQ
Univariate_evaluations_ops - no check
Univariate_polynomial_ops - resized to max size of the two

db8934e and 05f6452
Appear as though they should belong together

@chokobole chokobole force-pushed the perf/avoid-copying-on-group-operations branch from f0e3772 to 9ad6752 Compare April 16, 2024 10:07
Copy link
Contributor

@Insun35 Insun35 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@TomTaehoonKim TomTaehoonKim left a comment

Choose a reason for hiding this comment

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

LGTM

@chokobole chokobole force-pushed the perf/avoid-copying-on-group-operations branch from 9ad6752 to 9c38390 Compare April 16, 2024 11:55
@ashjeong
Copy link
Contributor

please fix 69d8eb8
fix(math): fix fast return cases for the polynomial operations
->
fix(math): fix fast return case for a polynomial operation

@chokobole chokobole force-pushed the perf/avoid-copying-on-group-operations branch from 9c38390 to cd6748d Compare April 16, 2024 13:13
Copy link
Contributor

@ashjeong ashjeong left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@dongchangYoo dongchangYoo left a comment

Choose a reason for hiding this comment

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

LGTM

@chokobole chokobole merged commit 38a2ff1 into main Apr 16, 2024
3 checks passed
@chokobole chokobole deleted the perf/avoid-copying-on-group-operations branch April 16, 2024 13:49
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.

None yet

5 participants