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

Improve R1CS File Loading Speed with BufReader #62

Closed
wants to merge 1 commit into from

Conversation

bruno-valante
Copy link
Contributor

@bruno-valante bruno-valante commented Jun 27, 2024

This PR enhances the speed of reading R1CS files by introducing BufReader. Frequent reading of u32 data significantly slows down the reading of R1CS files, and BufReader optimizes this by buffering large blocks of data, reducing the number of direct read calls to the disk. This change reduced the reading time of a file with 5 million R1CS constraints from 28 seconds to 1.2 seconds, significantly boosting efficiency.

@Pratyush
Copy link
Member

Hi Bruno, Thank you for your PR. Could you please rebase to the latest main branch and then we can merge this?

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.

2 participants