Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use only one splice if stdout is already a pipe #9

Open
dzamlo opened this issue Aug 4, 2018 · 1 comment
Open

Use only one splice if stdout is already a pipe #9

dzamlo opened this issue Aug 4, 2018 · 1 comment

Comments

@dzamlo
Copy link
Contributor

dzamlo commented Aug 4, 2018

stdout is often already a pipe. In this case it's possible to directly splice to it, without an intermediate pipe.

It may be interesting to compare that with the current implementation. I wouldn't expect much difference, but it may be interesting nonetheless.

@mre
Copy link
Owner

mre commented Aug 5, 2018

Yup, would be a nice test.
I think the way to go would be to check each input argument if it already is a pipe. No idea if there's an easy check for that.

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

No branches or pull requests

2 participants