]> git.eshelyaron.com Git - emacs.git/commit
Speed up insert-file-contents reads
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Jul 2025 20:33:27 +0000 (13:33 -0700)
committerEshel Yaron <me@eshelyaron.com>
Thu, 24 Jul 2025 08:49:08 +0000 (10:49 +0200)
commit0d2c9b3a23373cd02134f8a1d400cd28ac277eeb
tree9d6812baa64bd0462c068b4b279780e4f1f0ebf2
parent592e092ca39225b5640c575520c21902008eec54
Speed up insert-file-contents reads

This change makes insert-file-contents-literally 30% faster on my
platform, when inserting xdisp.c.
* src/fileio.c (READ_BUF_SIZE): Remove, replacing with ...
(IO_BUFSIZE): ... this new constant from Coreutils.
All uses of READ_BUF_SIZE changed to either MAX_ALLOCA or
IO_BUFSIZE.

(cherry picked from commit 5bce6753e24d04ea3e4715fab53cc65c1b4ee8d7)
src/fileio.c