mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 03:16:31 +00:00
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:
@@ -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
|
||||
};
|
||||
|
Reference in New Issue
Block a user