]> git.eshelyaron.com Git - emacs.git/commit
insert-file-contents read size increase
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 20 Jul 2025 20:40:20 +0000 (13:40 -0700)
committerEshel Yaron <me@eshelyaron.com>
Fri, 25 Jul 2025 08:11:44 +0000 (10:11 +0200)
commit3d5fa2b8f94a3e51130b8171f2c9d8f9a796930a
tree566a1359eda35618dfad554fb53301496da89225
parent612356183dc27d8610d70762db370701565d33f1
insert-file-contents read size increase

This increases the max read size from 0.25 to 1 MiB, which is a
bit better for Emacs in my measurements.  The old value was taken
from coreutils, but was for a different purpose.
* src/fileio.c (INSERT_READ_SIZE_MAX): New constant, replacing
IO_BUFSIZE.  All uses changed.
(Finsert_file_contents): Do not use a read buffer that is larger
than INSERT_READ_SIZE_MAX.

(cherry picked from commit a8e46f11a89145390ee681e2dd14fbe6ab79b7f0)
src/fileio.c