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

[feat] make serial_batch_inversion_and_mul public #939

Open
flyq opened this issue Feb 18, 2025 · 0 comments
Open

[feat] make serial_batch_inversion_and_mul public #939

flyq opened this issue Feb 18, 2025 · 0 comments

Comments

@flyq
Copy link

flyq commented Feb 18, 2025

I need to use batch_inversion_and_mul from ark-ff, and I hope to use both serial and parallel code.

The situation is like this, these use cases appear at the same time: some of them can be met by directly using the parallel feature, but others use case has additional complex logic. I parallelized the task in advance, so I expect the subtasks in it to be serial. And through measurement, if the parallel batch_inversion_and_mul is called directly in the subtask, it will lead to performance degradation, and it will cause additional mod div.

Adding this feature is simple. Change serial_batch_inversion_and_mul public:

pub fn serial_batch_inversion_and_mul<F: Field>(v: &mut [F], coeff: &F) {
...
}
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

No branches or pull requests

1 participant