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

Change follow to use a file watcher when possible #16

Closed
egregius313 opened this issue Sep 16, 2022 · 0 comments · Fixed by #17
Closed

Change follow to use a file watcher when possible #16

egregius313 opened this issue Sep 16, 2022 · 0 comments · Fixed by #17
Assignees
Labels
enhancement New feature or request

Comments

@egregius313
Copy link
Collaborator

Operating systems often provide more efficient means of watching the events which happen with a file.

headtail currently uses a polling approach, which means the thread is waking and executing code even when it doesn't need to.

We should modify the behavior of following mode to use OS file watchers when possible.

@egregius313 egregius313 added the enhancement New feature or request label Sep 16, 2022
@egregius313 egregius313 self-assigned this Sep 16, 2022
This issue was closed.
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

Successfully merging a pull request may close this issue.

1 participant