vim-patch:8.1.2285: padding in structures wastes memory

Problem:    Padding in structures wastes memory.
Solution:   Move fields to avoid padding. (Dominique Pelle, closes vim/vim#5202)
d6beab0248

Skip "ml_line_len" member of "struct memline".
Patch v8.1.0579 was not ported.
This commit is contained in:
Jan Edmund Lazo
2021-02-06 17:09:06 -05:00
parent 336eb70822
commit bea99729dd
5 changed files with 16 additions and 18 deletions

View File

@@ -24,11 +24,11 @@ typedef struct signlist signlist_T;
struct signlist
{
int id; // unique identifier for each placed sign
linenr_T lnum; // line number which has this sign
int typenr; // typenr of sign
bool has_text_or_icon; // has text or icon
signgroup_T *group; // sign group
int priority; // priority for highlighting
bool has_text_or_icon; // has text or icon
linenr_T lnum; // line number which has this sign
signgroup_T *group; // sign group
signlist_T *next; // next signlist entry
signlist_T *prev; // previous entry -- for easy reordering
};