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:
committed by
Bram Moolenaar
parent
b9c09c118e
commit
975a665d48
10
src/alloc.c
10
src/alloc.c
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user