The grow buffer is allocated and freed for each quickfix entry. This is inefficient. Reuse the same grow buffer across all the entries.
https://github.com/vim/vim/pull/11365
(3 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@yegappan pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Merging #11365 (a1f3d1b) into master (ba43e76) will increase coverage by
0.60%.
The diff coverage is97.67%.
@@ Coverage Diff @@ ## master #11365 +/- ## ========================================== + Coverage 81.87% 82.47% +0.60% ========================================== Files 162 152 -10 Lines 189326 179334 -9992 Branches 43064 40713 -2351 ========================================== - Hits 155014 147910 -7104 + Misses 21769 19159 -2610 + Partials 12543 12265 -278
| Flag | Coverage Δ | |
|---|---|---|
| huge-clang-none | 82.75% <97.67%> (-0.01%) |
⬇️ |
| huge-gcc-none | ? |
|
| huge-gcc-testgui | 53.15% <97.61%> (-0.01%) |
⬇️ |
| huge-gcc-unittests | 0.29% <0.00%> (-0.01%) |
⬇️ |
| linux | 82.47% <97.67%> (-0.07%) |
⬇️ |
| mingw-x64-HUGE | ? |
|
| mingw-x86-HUGE | ? |
|
| windows | ? |
Flags with carried forward coverage won't be shown. Click here to find out more.
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/quickfix.c | 90.84% <97.61%> (-0.45%) |
⬇️ |
| src/alloc.c | 78.21% <100.00%> (-0.16%) |
⬇️ |
| src/regexp_bt.c | 78.48% <0.00%> (-7.48%) |
⬇️ |
| src/json.c | 77.84% <0.00%> (-5.47%) |
⬇️ |
| src/regexp_nfa.c | 85.15% <0.00%> (-4.72%) |
⬇️ |
| src/libvterm/src/parser.c | 55.18% <0.00%> (-4.15%) |
⬇️ |
| src/edit.c | 82.88% <0.00%> (-3.49%) |
⬇️ |
| src/gui.c | 69.72% <0.00%> (-3.16%) |
⬇️ |
| src/normal.c | 87.97% <0.00%> (-3.00%) |
⬇️ |
| src/libvterm/src/screen.c | 50.18% <0.00%> (-2.85%) |
⬇️ |
| ... and 123 more |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
> The grow buffer is allocated and freed for each quickfix entry. This
> is inefficient. Reuse the same grow buffer across all the entries.
Thanks, I'll include it.
Perhaps the buffer should be cleared once an operation is done, e.g.
when it uses more than 300 bytes of memory.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()