vim-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 vim/vim#11365)

975a665d48

Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
zeertzjq
2023-03-05 16:52:47 +08:00
parent 1cfe83c2a2
commit 1adad44b7c
2 changed files with 67 additions and 46 deletions

View File

@@ -755,11 +755,7 @@ void free_all_mem(void)
p_hi = 0;
init_history();
qf_free_all(NULL);
// Free all location lists
FOR_ALL_TAB_WINDOWS(tab, win) {
qf_free_all(win);
}
free_quickfix();
// Close all script inputs.
close_all_scripts();