-
Notifications
You must be signed in to change notification settings - Fork 123
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
ENHANCED: Read more characters at once, significantly speeding up library(pio) #589
Conversation
Why read one byte at a time? There is take. And for the name |
Yes, I noticed In fact I chose |
There is the type The current implementation is like |
Thank you @notoria for these suggestions, I have addressed these issues in additional commits. Please review, and merge if applicable! Thank you again. |
I don't have the numbers but an iterator could be faster (and nicer?). Something like this, it could be done for both binary and text mode. With |
I suggest to leave micro-optimizations to contributors who want to measure the performance of such changes, and ideally address this in Rust itself where possible. |
I have rebased the changes against the current master branch! One additional note: The next and final big step to improve efficiency is to map files without |
Enjoy!