[vim/vim] Refactor to reduce the number of calls to STRLEN() Part 8 (PR #15121)

7 views
Skip to first unread message

John Marriott

unread,
Jun 28, 2024, 7:03:10 PM (4 days ago) Jun 28
to vim/vim, Subscribed

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.


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

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

Commit Summary

  • a1c3a94 Refactor misc2.c to reduce the number of calls to STRLEN()

File Changes

(1 file)

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/15121@github.com>

John Marriott

unread,
Jun 28, 2024, 8:03:19 PM (4 days ago) Jun 28
to vim/vim, Subscribed

Closed #15121.


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/15121/issue_event/13337382273@github.com>

Reply all
Reply to author
Forward
0 new messages