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

Buffer reads from cargo check's stdout #2916

Merged
merged 1 commit into from Jan 27, 2020
Merged

Conversation

lnicola
Copy link
Member

@lnicola lnicola commented Jan 27, 2020

Stdio::piped() is unbuffered, which caused RA to read the output of cargo check one byte at a time (out of 114KB in my test).

This isn't obviously faster on my system, but making fewer syscalls sounds like a good idea.

@matklad
Copy link
Member

matklad commented Jan 27, 2020

bors r+

TIL

bors bot added a commit that referenced this pull request Jan 27, 2020
2916: Buffer reads from cargo check's stdout r=matklad a=lnicola

`Stdio::piped()` is unbuffered, which caused RA to read the output of `cargo check` one byte at a time (out of 114KB in my test).

This isn't obviously faster on my system, but making fewer syscalls sounds like a good idea.

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
@bors
Copy link
Contributor

bors bot commented Jan 27, 2020

Build succeeded

  • Rust (macos-latest)
  • Rust (ubuntu-latest)
  • Rust (windows-latest)
  • TypeScript

@bors bors bot merged commit c34571c into rust-lang:master Jan 27, 2020
@lnicola lnicola deleted the buffer-stdout branch January 27, 2020 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants