…s and corresponding handler functions
https://github.com/vim/vim/pull/9561
(1 file)
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Merging #9561 (2114111) into master (17dd519) will decrease coverage by
0.73%.
The diff coverage is93.10%.
@@ Coverage Diff @@ ## master #9561 +/- ## ========================================== - Coverage 83.51% 82.77% -0.74% ========================================== Files 154 153 -1 Lines 174341 173199 -1142 Branches 39220 39227 +7 ========================================== - Hits 145594 143374 -2220 - Misses 16661 17565 +904 - Partials 12086 12260 +174
| Flag | Coverage Δ | |
|---|---|---|
| huge-clang-none | 81.87% <92.69%> (+<0.01%) |
⬆️ |
| huge-gcc-none | ? |
|
| huge-gcc-testgui | 80.71% <89.61%> (-0.01%) |
⬇️ |
| huge-gcc-unittests | 2.03% <0.00%> (+<0.01%) |
⬆️ |
Flags with carried forward coverage won't be shown. Click here to find out more.
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/normal.c | 90.56% <93.10%> (-0.12%) |
⬇️ |
| src/libvterm/src/rect.h | 0.00% <0.00%> (-96.78%) |
⬇️ |
| src/libvterm/src/state.c | 38.86% <0.00%> (-50.30%) |
⬇️ |
| src/libvterm/include/vterm.h | 0.00% <0.00%> (-44.45%) |
⬇️ |
| src/libvterm/src/keyboard.c | 44.21% <0.00%> (-43.42%) |
⬇️ |
| src/libvterm/src/parser.c | 60.83% <0.00%> (-35.06%) |
⬇️ |
| src/libvterm/src/pen.c | 48.81% <0.00%> (-34.90%) |
⬇️ |
| src/libvterm/src/encoding.c | 39.39% <0.00%> (-34.14%) |
⬇️ |
| src/libvterm/src/vterm.c | 39.17% <0.00%> (-27.21%) |
⬇️ |
| src/libvterm/src/utf8.h | 68.18% <0.00%> (-4.55%) |
⬇️ |
| ... and 26 more |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered by Codecov. Last update 17dd519...2114111. Read the comment docs.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I'm not sure this is an improvement. Using a switch statement the compiler can find the optimal way to select the code to execute. A linear search through an array is likely to always be slower.
A binary search would be much better, but it is hard to get the key codes in sorted order.
A kind of hashtable might also work. It would have to be created at runtime though.
We have a similar problem for the normal mode command, which is using a sorted index table. It is filled in init_normal_cmds().
This adds to the startup time.
We could change this to generate the table at compile time. Then the table used for "g" commands could also use a binary search, like in find_command(). The "g" command table would have gaps in the lower block (the part where the typed character can directly be used as an index, up to "~"). Or not use a lower block.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
@yegappan pushed 4 commits.
You are receiving this because you are subscribed to this thread.![]()
I'm not sure this is an improvement. Using a switch statement the compiler can find the optimal way to select the code to execute. A linear search through an array is likely to always be slower.
A binary search would be much better, but it is hard to get the key codes in sorted order.
A kind of hashtable might also work. It would have to be created at runtime though.We have a similar problem for the normal mode command, which is using a sorted index table. It is filled in init_normal_cmds().
This adds to the startup time.We could change this to generate the table at compile time. Then the table used for "g" commands could also use a binary search, like in find_command(). The "g" command table would have gaps in the lower block (the part where the typed character can directly be used as an index, up to "~"). Or not use a lower block.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Closed #9561.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.![]()