Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[io] Make it possible to change the line ending output by
stdout
an…
…d `stderr`. There is a performance impact in: `stdout.lineTerminator = "\r\n";` For small writes (<100 chars), the performance loss is lost in the noise of the `write` system call. For writes of ~500 chars, the performance is about half of that without line terminator translation. But, on a M2 Mac laptop, ~80M characters can be written per second. Bug: #53161 Change-Id: Icfa0f981dcf6edb856d8aac5e0e270bc0148d498 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326761 Reviewed-by: Siva Annamalai <asiva@google.com> Reviewed-by: Lasse Nielsen <lrn@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com> Reviewed-by: Ömer Ağacan <omersa@google.com> Reviewed-by: Brian Quinlan <bquinlan@google.com> Commit-Queue: Brian Quinlan <bquinlan@google.com>
- Loading branch information
1 parent
7b63c20
commit 770f44d
Showing
5 changed files
with
418 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.