tee: merge flush into write for simplicity#12089
Conversation
|
GNU testsuite comparison: |
|
I don't see the benefit of this change, it also means we won't be able to extract |
|
I believe that there is an advantage to do that more than moving this to uucore since
|
|
I guess we already have same things on |
Merging this PR will degrade performance by 3.13%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | Simulation | du_max_depth_balanced_tree[(6, 4, 10)] |
25.1 ms | 25.9 ms | -3.13% |
Comparing oech3:tee-flush (d756c7a) with main (5316f58)
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. ↩
We could use |
|
|
|
It doesn't make sense to replace idiomatic |
|
I'm planning to use it and really want to avoid to put the large block on the main logic.
|
|
Also this is the only way to avoid executing 2 match. |
Then we can avoid
let res = (|| { *** })();.