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 tee(2) to avoid reading one byte at a time from stdin #6

Closed
herbertx opened this issue Apr 28, 2024 · 2 comments
Closed

Use tee(2) to avoid reading one byte at a time from stdin #6

herbertx opened this issue Apr 28, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@herbertx
Copy link
Owner

People have been complaining about the lack of the ability peek on pipes on Linux for years. However, there is actually a way to do that, through the system call tee(2). So dash should start using this to read stdin pipes in order to avoid the penalty of one read(2) per byte.

@herbertx herbertx added the enhancement New feature or request label Apr 28, 2024
@herbertx herbertx self-assigned this Apr 28, 2024
@herbertx
Copy link
Owner Author

herbertx commented May 5, 2024

@herbertx
Copy link
Owner Author

herbertx commented Jun 8, 2024

44b15ea

@herbertx herbertx closed this as completed Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant