unexpand: reuse a smaller buf, perf 14%+#11178
Conversation
Merging this PR will improve performance by 14.46%
Performance Changes
Comparing Footnotes
|
32f948d to
a479877
Compare
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
It seems we achieve 41.12% by reusing BufReader's buf. But I'll wait this since it has large diff. |
|
GNU testsuite comparison: |
|
Similar change for |
|
It's probably ok to use coreutils/src/uu/tee/src/tee.rs Line 230 in e85d07d |
|
It is too large. Would cause serious performance drop. Smaller size was faster. |
|
I guess there is overhead from zeroing. I'm interested to see your code for reusing |
|
It seems I was misunderstanding (or perf is very flakey). It was just +4.16% |
|
I might try to avoid 0fill |
|
@oech3 I doubt there is much to be gained from avoiding zero fill to a stack allocated array. I think we could wait for the Rust standard library to gain support with If you could remove reuse existing |
|
Should we try reusing BufReader with same buf size? |
|
One of a possibility is |
|
still cgu=2 is 7% better |
Closes? #10654