Skip to content

No output buffering with -j1 #1691

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

Open
tavianator opened this issue Mar 17, 2025 · 0 comments
Open

No output buffering with -j1 #1691

tavianator opened this issue Mar 17, 2025 · 0 comments

Comments

@tavianator
Copy link
Collaborator

#1452 (my fix for #1313) is effective with multiple cores, but with -j1 the heuristic doesn't work since the worker thread probably doesn't have time to push another entry between the main thread dequeueing and printing the existing batch.

To fully fix it, we need some de-bouncing: if we have unflushed output, do recv_timeout(0.1s) (or something) and only flush() if it times out.

Originally posted by @tavianator in #1395 (comment)

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

1 participant