Refactor misc2.c to reduce the number of calls to STRLEN().
Also, use bsearch() to lookup special key codes. In my measurements at startup on an empty buffer on HPUX, the number of comparisons in function get_special_key_code() went from 4883 to 443.
https://github.com/vim/vim/pull/15121
(1 file)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Closed #15121.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.