File.Unix: save a syscall on the File.{Write*,Append*} methods. (#59247)
authorTom Deseyn <tom.deseyn@gmail.com>
Fri, 17 Sep 2021 10:44:18 +0000 (12:44 +0200)
committerGitHub <noreply@github.com>
Fri, 17 Sep 2021 10:44:18 +0000 (12:44 +0200)
commit608128995e6bf9acefadc34cd4ba01fcac510d92
tree298b06ae724fea7283a0816eedd9b57ba5e7e5f9
parent6579e5e3db2108baba0525c9603e7be8023614c4
File.Unix: save a syscall on the File.{Write*,Append*} methods. (#59247)

FileOptions.SequentialScan tunes the kernel read ahead. Since we're writing
the whole file it doesn't bring anything, and it costs us a syscall on Unix.
src/libraries/System.Private.CoreLib/src/System/IO/File.cs