diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2022-10-14 13:11:13 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-14 13:11:13 +0100 |
commit | 975a665d4811649a51e2c6a97a6ce096290d87ae (patch) | |
tree | aa34659fe233d4c0f5080d7ecf3b3bb19eb44193 /src/alloc.c | |
parent | b9c09c118e951bc6ea2059941101939dc572b4ce (diff) |
patch 9.0.0749: alloc/free of buffer for each quickfix entry is inefficientv9.0.0749
Problem: Alloc/free of buffer for each quickfix entry is inefficient.
Solution: Use a shared grow array. (Yegappan Lakshmanan, closes #11365)
Diffstat (limited to 'src/alloc.c')
-rw-r--r-- | src/alloc.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/alloc.c b/src/alloc.c index 1032462805..583ea87743 100644 --- a/src/alloc.c +++ b/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. |