Skip to content

Commit 6730ebb

Browse files
qmuntalezz-no
authored andcommitted
doc: document Windows os.ReadDir improvements
For golang#61422. Change-Id: Icc1868ef9516766d0f422849866ef8de27bfa4c5 Reviewed-on: https://go-review.googlesource.com/c/go/+/549275 Reviewed-by: Mauri de Souza Meneguzzo <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Pratt <[email protected]> Reviewed-by: Bryan Mills <[email protected]> Reviewed-by: Alex Brainman <[email protected]>
1 parent 7ae97b2 commit 6730ebb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/go1.22.html

+9
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,15 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
691691
On Windows, passing <a href="/pkg/os#O_SYNC"><code>O_SYNC</code></a> to <a href="/pkg/os#OpenFile"><code>OpenFile</code></a> now causes write operations to go directly to disk, equivalent to <code>O_SYNC</code> on Unix platforms.
692692
</p>
693693

694+
<p><!-- CL 452995 -->
695+
On Windows, the <a href="/pkg/os#ReadDir"><code>ReadDir</code></a>,
696+
<a href="/pkg/os#File.ReadDir"><code>File.ReadDir</code></a>,
697+
<a href="/pkg/os#File.Readdir"><code>File.Readdir</code></a>,
698+
and <a href="/pkg/os#File.Readdirnames"><code>File.Readdirnames</code></a> functions
699+
now read directory entries in batches to reduce the number of system calls,
700+
improving performance up to 30%.
701+
</p>
702+
694703
<p><!-- https://go.dev/issue/58808 -->
695704
When <a href="/pkg/io#Copy"><code>io.Copy</code></a> copies
696705
from a <code>File</code> to a <code>net.UnixConn</code>,

0 commit comments

Comments
 (0)