mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 9.0.0165: looking up a text property type by ID is slow
Problem: Looking up a text property type by ID is slow. Solution: Keep an array of property types sorted on ID.
This commit is contained in:
@@ -3084,6 +3084,7 @@ struct file_buffer
|
||||
#ifdef FEAT_PROP_POPUP
|
||||
int b_has_textprop; // TRUE when text props were added
|
||||
hashtab_T *b_proptypes; // text property types local to buffer
|
||||
proptype_T **b_proparray; // entries of b_proptypes sorted on tp_id
|
||||
garray_T b_textprop_text; // stores text for props, index by (-id - 1)
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user