Skip to content

Commit 6431f37

Browse files
authored
gh-120754: Add to io optimization to what's new (#126466)
1 parent 4ea214e commit 6431f37

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Doc/whatsnew/3.14.rst

+9
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,15 @@ asyncio
471471
reduces memory usage.
472472
(Contributed by Kumar Aditya in :gh:`107803`.)
473473

474+
io
475+
---
476+
* :mod:`io` which provides the built-in :func:`open` makes less system calls
477+
when opening regular files as well as reading whole files. Reading a small
478+
operating system cached file in full is up to 15% faster.
479+
:func:`pathlib.Path.read_bytes` has the most optimizations for reading a
480+
file's bytes in full. (Contributed by Cody Maloney and Victor Stinner in
481+
:gh:`120754` and :gh:`90102`.)
482+
474483
Deprecated
475484
==========
476485

0 commit comments

Comments
 (0)