Lock stdout for performance
This commit is contained in:
parent
d1b3381072
commit
e1690a49ed
|
@ -13,5 +13,5 @@ pub fn load_csv_from_stdin() -> PolarsResult<DataFrame> {
|
||||||
|
|
||||||
/// Take a Polars Dataframe and write it as CSV to stdout
|
/// Take a Polars Dataframe and write it as CSV to stdout
|
||||||
pub fn dump_csv_to_stdout(df: &mut DataFrame) -> Result<(), PolarsError> {
|
pub fn dump_csv_to_stdout(df: &mut DataFrame) -> Result<(), PolarsError> {
|
||||||
CsvWriter::new(io::stdout()).finish(df)
|
CsvWriter::new(io::stdout().lock()).finish(df)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue