Skip to content

Rely on subprocess.Popen pipesize parameter rather than custom code for seting pipe size.#179

Merged
marcelm merged 1 commit into
mainfrom
subprocesspipesize
Jun 5, 2026
Merged

Rely on subprocess.Popen pipesize parameter rather than custom code for seting pipe size.#179
marcelm merged 1 commit into
mainfrom
subprocesspipesize

Conversation

@rhpvorderman

Copy link
Copy Markdown
Collaborator

As soon as I found the problem with pipes being 64KB by default and xopen issuing 128KB reads and writes I made a PR to CPython allowing to set the pipesize on subprocess.

Now we can finally pick the fruits of that labour!

As a side note, this is so useful. Forget bash. Pipe your programs together using python and set pipesize to 1MB. Enjoy much better speeds!

@marcelm

marcelm commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Awesome! (And wow, already six years since #36 (comment) ...)

@marcelm marcelm merged commit 0818f20 into main Jun 5, 2026
18 of 19 checks passed
@marcelm marcelm deleted the subprocesspipesize branch June 5, 2026 11:22
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

Successfully merging this pull request may close these issues.

2 participants