escargot icon indicating copy to clipboard operation
escargot copied to clipboard

Fix a Useless Use Of Cat in tools/measure.sh

Open dyyim741 opened this issue 4 years ago • 1 comments

With the UUoC version, cat has to read the file into memory, then write it out to the pipe, and the command has to read the data from the pipe, so the kernel has to copy the whole file three times whereas in the redirected case, the kernel only has to copy the file once. It is quicker to do something once than to do it three times.

Ref : http://porkmail.org/era/unix/award.html

dyyim741 avatar Oct 29 '19 07:10 dyyim741

@dyyim741 Sorry for late review. Unfortunately we decide to clear up some redundant files as described in #499 and your commits including #486 will be no longer valid. But we always welcome any suggestion. Please feel free to participate in this project. Thanks for your contribution.

clover2123 avatar Nov 06 '19 09:11 clover2123