-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
BufWriter's inner does not need to be an Option #36319
Comments
The (The |
@TimNN |
@apasel422: Yeah, you're right, so let me rephrase: An And personally I don't think the |
A benchmark would be good, but if there is any measurable gain to be had, then this is exactly (one of the reasons) why |
Anyone have ideas for a benchmark for this? |
I'm going to go ahead and close as this is a pretty ugly change based on the couple PRs that tried to fix this and the additional complexity isn't really worth it (no benchmarks are able to show significant wins). |
In the implementation of BufWriter the option type for the inner writer does not seem to be necessary. There is no way to initialize the inner writer to be None and the value is unwrap()'d anywhere the value of it is needed.
The text was updated successfully, but these errors were encountered: