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

Improved performance of reading #157

Merged
merged 1 commit into from
Jul 2, 2022
Merged

Improved performance of reading #157

merged 1 commit into from
Jul 2, 2022

Conversation

jorgecarleitao
Copy link
Owner

This PR improves the performance of reading (everything) by not zeroying regions when calling Read, via read_to_end.

Excellent tip by Kornel at https://users.rust-lang.org/t/how-to-efficiently-re-use-a-vec-u8-for-multiple-read-read/77628/6

@jorgecarleitao jorgecarleitao added the enhancement New feature or request label Jun 29, 2022
@jorgecarleitao jorgecarleitao merged commit 4829365 into main Jul 2, 2022
@jorgecarleitao jorgecarleitao deleted the faster_read branch July 25, 2022 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant