Skip to main content

enlarge_stdout_pipe

Function enlarge_stdout_pipe 

Source
pub fn enlarge_stdout_pipe()
Expand description

Enlarge stdout pipe buffer on Linux for higher throughput. Only enlarges stdout (fd 1) when it is actually a pipe. Tries 8MB first (best for large data), falls back to 1MB then 256KB. Silently no-ops on non-pipes, non-Linux, or restricted environments.