diff options
author | Cody Maloney <cmaloney@users.noreply.github.com> | 2024-11-06 06:54:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-06 06:54:40 (GMT) |
commit | 6431f379b86c2f41a9a9f5a54e77d4e8d556489d (patch) | |
tree | 26ced4170d7863ec16d6cde87bd958518287c031 | |
parent | 4ea214ea982944b59ff543a5c6f4ec782a47588c (diff) | |
download | cpython-6431f379b86c2f41a9a9f5a54e77d4e8d556489d.zip cpython-6431f379b86c2f41a9a9f5a54e77d4e8d556489d.tar.gz cpython-6431f379b86c2f41a9a9f5a54e77d4e8d556489d.tar.bz2 |
gh-120754: Add to `io` optimization to what's new (#126466)
-rw-r--r-- | Doc/whatsnew/3.14.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index 9300de4..b9d2c27 100644 --- a/Doc/whatsnew/3.14.rst +++ b/Doc/whatsnew/3.14.rst @@ -471,6 +471,15 @@ asyncio reduces memory usage. (Contributed by Kumar Aditya in :gh:`107803`.) +io +--- +* :mod:`io` which provides the built-in :func:`open` makes less system calls + when opening regular files as well as reading whole files. Reading a small + operating system cached file in full is up to 15% faster. + :func:`pathlib.Path.read_bytes` has the most optimizations for reading a + file's bytes in full. (Contributed by Cody Maloney and Victor Stinner in + :gh:`120754` and :gh:`90102`.) + Deprecated ========== |