]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0140: file reading performance can be improved v9.2.0140
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Wed, 11 Mar 2026 20:18:26 +0000 (20:18 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 11 Mar 2026 20:18:26 +0000 (20:18 +0000)
commit2ca96b09d751c35189dd587d9b201e2aeb5559c0
tree919a4b39903c8617d112e2691bcd29ed16ca7668
parentc970b470fb2d23ae35b2b598c70884a90fb2df04
patch 9.2.0140: file reading performance can be improved

Problem:  Reading large files is slow because UTF-8 validation and
          newline scanning are performed byte-by-byte. Initial file
          loading also triggers listener and channel processing.
Solution: Use memchr() for SIMD-optimized newline scanning, implement
          word-at-a-time ASCII skipping during UTF-8 validation using a
          bitmask, skip listener/netbeans/channel notifications
          when the ML_APPEND_NEW flag is set during readfile()
          (Yasuhiro Matsumoto).

closes: #19612

Co-authored-by: NRK <nrk@disroot.org>
Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/fileio.c
src/memline.c
src/version.c