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
Write to stdout ASAP in server mode #10814
Conversation
I'll defer to @koic here, as I'm not sure why he went for the output buffering in the first place. |
@@ -0,0 +1 @@ | |||
* Avoid buffering stdout when running in server mode. ([@ccutrer][]) |
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.
Can you add this PR address?
* Avoid buffering stdout when running in server mode. ([@ccutrer][]) | |
* [#10814](https://github.com/rubocop/rubocop/pull/10814): Avoid buffering stdout when running in server mode. ([@ccutrer][]) |
Yeah, |
@ccutrer If possible, can you provide a benchmark comparison before ( |
Don't wait for a full 4KB of output, or a timeout, just write it as we get it. This makes the experience feel much more like you're running rubocop directly
53cd659
to
795f830
Compare
Environment:
In other words, no discernible time difference. When running I've updated ed the changelog entry. |
Thanks! |
Don't wait for a full 4KB of output, or a timeout, just write it as
we get it. This makes the experience feel much more like you're running
rubocop directly.