forked from aniani/vim
patch 8.2.0751: Vim9: performance can be improved
Problem: Vim9: performance can be improved. Solution: Don't call break. Inline check for list materialize. Make an inline version of ga_grow().
This commit is contained in:
@@ -373,3 +373,9 @@
|
||||
# define ESTACK_CHECK_NOW
|
||||
# define CHECK_CURBUF
|
||||
#endif
|
||||
|
||||
// Inline the condition for performance.
|
||||
#define CHECK_LIST_MATERIALIZE(l) if ((l)->lv_first == &range_list_item) range_list_materialize(l)
|
||||
|
||||
// Inlined version of ga_grow(). Especially useful if "n" is a constant.
|
||||
#define GA_GROW(gap, n) (((gap)->ga_maxlen - (gap)->ga_len < n) ? ga_grow_inner((gap), (n)) : OK)
|
||||
|
Reference in New Issue
Block a user