Skip to content

chaining commands that generate large output is impractical #2

Description

@abg

subprocess.run uses Popen.communicate() which buffers data in memory. So some tasks that might be desirable to run (e.g. mysqldump | gzip ) will use too much memory and fail for many cases. Ideally this would instead just link up pipes across processes and handle the file descriptor management behind the scenes, so it could handle arbitrary command chains.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions