Skip to content

Conversation

@rhpvorderman
Copy link
Collaborator

Fixes #35

This is dependent on the PipedCompressionReader PR.

F_SETPIPE_SZ and F_GETPIPE_SZ are set with getattr to the fcntl module. As of Python 3.10 these constants should be available in that code by default (if my PR to cpython gets merged). By setting it this way, backwards-compatibility can be guaranteed.

As of python 3.10 it should also be possible to set the pipesize directly in subprocess.Popen. But it will take at least 6 years for all versions below python 3.10 not to be supported anymore.

Base automatically changed from pipedreaders to master September 8, 2020 08:11
@rhpvorderman
Copy link
Collaborator Author

@marcelm This is now ready for review.

@marcelm
Copy link
Collaborator

marcelm commented Sep 10, 2020

Thanks for this and also the detailed analysis in #35! This is a really nice improvement.

@marcelm marcelm merged commit 9d42366 into master Sep 10, 2020
@marcelm marcelm deleted the maxpipesize branch September 10, 2020 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use fcntl to increase the pipe size to max pipe size when on linux.

3 participants