From 6396a42b99daab77f6207f6c3011f7ffd7bbe173 Mon Sep 17 00:00:00 2001
From: qmuntal
Date: Tue, 12 Dec 2023 19:20:24 +0100
Subject: [PATCH] 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
---
doc/go1.22.html | 9 +++++++++
1 file changed, 9 insertions(+)
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
,
--
2.48.1