patch 9.0.0749: alloc/free of buffer for each quickfix entry is inefficient

Problem:    Alloc/free of buffer for each quickfix entry is inefficient.
Solution:   Use a shared grow array. (Yegappan Lakshmanan, closes #11365)
This commit is contained in:
Yegappan Lakshmanan
2022-10-14 13:11:13 +01:00
committed by Bram Moolenaar
parent b9c09c118e
commit 975a665d48
4 changed files with 82 additions and 52 deletions

View File

@ -472,15 +472,7 @@ free_all_mem(void)
# endif
# ifdef FEAT_QUICKFIX
{
win_T *win;
tabpage_T *tab;
qf_free_all(NULL);
// Free all location lists
FOR_ALL_TAB_WINDOWS(tab, win)
qf_free_all(win);
}
free_quickfix();
# endif
// Close all script inputs.