]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-120754: Add to `io` optimization to what's new (#126466)
authorCody Maloney <cmaloney@users.noreply.github.com>
Wed, 6 Nov 2024 06:54:40 +0000 (22:54 -0800)
committerGitHub <noreply@github.com>
Wed, 6 Nov 2024 06:54:40 +0000 (07:54 +0100)
Doc/whatsnew/3.14.rst

index 9300de440cdc30534795586efd21d13c4555fc9a..b9d2c27eb9a32148d1648a739fb57f15df689889 100644 (file)
@@ -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
 ==========