[vim/vim] Reduce startup termcode and UTF-8 scanning work (PR #19902)

2 views
Skip to first unread message

mattn

unread,
11:27 AM (10 hours ago) 11:27 AM
to vim/vim, Subscribed

This reduces some repeated startup work in find_term_bykeys() and vim_strchr().

Compared with master on normal startup (./vim -c 'qa!'):

Benchmark master branch delta
Callgrind Ir 788,506,178 574,678,633 -27.12%
Hyperfine wall-clock 2.156 s ± 0.018 s 2.153 s ± 0.037 s no meaningful change

This lowers CPU work in the startup path, but startup time itself stays about the same here because terminal I/O and other external costs still dominate.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19902

Commit Summary

  • 5958f21 speed up startup termcode and UTF-8 scans
  • 8cb26b5 add startup benchmark against master
  • a716e83 remove local benchmark helper script

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19902@github.com>

Reply all
Reply to author
Forward
0 new messages