-
Notifications
You must be signed in to change notification settings - Fork 14
Gotta go small #29
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
Gotta go small #29
Conversation
Eliminates ~1KB stdout buffering allocation by using Cursor<&mut [u8]> and libc::write instead of format!() + stdout().write_all()
Performance Comparison
|
Performance Comparison
|
NotAShelf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Before:

After:

The most significant changes is the changes done to main.rs, which dropped the memory usage with about 2.2 kb