forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
7 changes: 4 additions & 3 deletions
7
Misc/NEWS.d/next/Library/2024-04-30-14-03-09.gh-issue-117151.yt2H8c.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Increase ``io.DEFAULT_BUFFER_SIZE`` from 8k to 128k. Adjust :func:`open` on | ||
Linux to use ``max(io.DEFAULT_BUFFER_SIZE, device block size)`` rather than | ||
the device block size. Improve I/O write performance by up to 5 times. | ||
Increase ``io.DEFAULT_BUFFER_SIZE`` from 8k to 128k and adjust :func:`open` on | ||
platforms where ``fstat`` provides a ``st_blksize`` field (such as Linux) to use | ||
``max(io.DEFAULT_BUFFER_SIZE, device block size)`` rather than always using the | ||
device block size. This should improve I/O performance. | ||
Patch by Romain Morotti. |