Skip to content

stdout buffering #18

@sstadick

Description

@sstadick

Hi! Super cool project!

I was looking at your io related code an noticed you are using std::io::stdout, which has issues: rust-lang/rust#60673

I've worked around this in other libraries of my own by using burtsushi's https://docs.rs/grep-cli/0.1.5/grep_cli/, which provides a correctly buffering stdout method when piping to a file, and line buffering when connected to a TTY.

I've seen significant speedups in my own libraries switching to buffered stdout. This may help close the single threaded gap with tsv utils.

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