[vim/vim] Autocommand checks expand paths for empty events (PR #21449)

7 views
Skip to first unread message

mattn

unread,
Oct 4, 2026, 1:40:50 PM (2 days ago) Oct 4
to vim/vim, Subscribed

Skip filename expansion in has_autocmd() when an event has no registered patterns. With my Windows configuration, this removes 125 redundant path expansions and reduces median startup time from 259 ms to 246 ms across nine runs per build. Source and autocommand tests pass.


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

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

Commit Summary

  • 4c138f1 Autocommand checks expand paths for empty events

File Changes

(1 file)

Patch Links:

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/21449@github.com>

Reply all
Reply to author
Forward
0 new messages