Skip to content

Commit

Permalink
gh-120754: Add to io optimization to what's new (#126466)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaloney authored Nov 6, 2024
1 parent 4ea214e commit 6431f37
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
==========

Expand Down

0 comments on commit 6431f37

Please sign in to comment.