tee: improve stdout performance#12207
Conversation
|
GNU testsuite comparison: |
Merging this PR will improve performance by ×17
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ | Simulation | tee_stdin_file[10000000] |
3,970.8 µs | 233.4 µs | ×17 |
Comparing xtqqczze:tee-throughput3 (f4d31a6) with main (9bf907d)
Footnotes
-
46 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
|
@oech3 I don't know if this is sound on Windows. |
|
How about mem::forget to block |
|
We need to use |
|
This is really bad limitation of Rust std... |
|
Also manual bench on Windows is needed since this removed flush from Win too. |
|
|
Another possibility is adding URL to nightly std's code to Windows's unsafe code and copy paste it. Then people can use it with minimized concern. Also I'm considering to add .write() to AsFd instead of |
Alternative to #12131