Skip to content

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

Open
dyyim741 wants to merge 1 commit intoSamsung:masterfrom
dyyim741:fix-shellscript-v1
Open

Fix a Useless Use Of Cat in tools/measure.sh#485
dyyim741 wants to merge 1 commit intoSamsung:masterfrom
dyyim741:fix-shellscript-v1

Conversation

@dyyim741
Copy link
Copy Markdown
Contributor

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

Signed-off-by: DaYea Yim <dyyim@protonmail.com>
@clover2123
Copy link
Copy Markdown
Contributor

@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.

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.

2 participants