From: qmuntal
Date: Tue, 12 Dec 2023 18:20:24 +0000 (+0100)
Subject: doc: document Windows os.ReadDir improvements
X-Git-Tag: go1.22rc1~11
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6396a42b99daab77f6207f6c3011f7ffd7bbe173;p=gostls13.git
doc: document Windows os.ReadDir improvements
For #61422.
Change-Id: Icc1868ef9516766d0f422849866ef8de27bfa4c5
Reviewed-on: https://go-review.googlesource.com/c/go/+/549275
Reviewed-by: Mauri de Souza Meneguzzo
LUCI-TryBot-Result: Go LUCI
Reviewed-by: Michael Pratt
Reviewed-by: Bryan Mills
Reviewed-by: Alex Brainman
---
diff --git a/doc/go1.22.html b/doc/go1.22.html
index 3a441f4cf7..233f7e1fb0 100644
--- a/doc/go1.22.html
+++ b/doc/go1.22.html
@@ -691,6 +691,15 @@ defer func() {
On Windows, passing O_SYNC
to OpenFile
now causes write operations to go directly to disk, equivalent to O_SYNC
on Unix platforms.
+
+ On Windows, the ReadDir
,
+ File.ReadDir
,
+ File.Readdir
,
+ and File.Readdirnames
functions
+ now read directory entries in batches to reduce the number of system calls,
+ improving performance up to 30%.
+
+
When io.Copy
copies
from a File
to a net.UnixConn
,