diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-02-06 17:09:06 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-02-06 17:30:47 -0500 |
commit | bea99729dd66a1d3c5351cbe6a7677df0619a33f (patch) | |
tree | 2beaf5430e075a93be4543394b2eec924c8830c9 /src/nvim/eval.h | |
parent | 336eb70822970cea6797251043158ee6bd76bc69 (diff) | |
download | rneovim-bea99729dd66a1d3c5351cbe6a7677df0619a33f.tar.gz rneovim-bea99729dd66a1d3c5351cbe6a7677df0619a33f.tar.bz2 rneovim-bea99729dd66a1d3c5351cbe6a7677df0619a33f.zip |
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)
https://github.com/vim/vim/commit/d6beab0248cdb0b7073e97d98d65de7138cb3386
Skip "ml_line_len" member of "struct memline".
Patch v8.1.0579 was not ported.
Diffstat (limited to 'src/nvim/eval.h')
-rw-r--r-- | src/nvim/eval.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.h b/src/nvim/eval.h index 06b7f9e21d..a005d89cd0 100644 --- a/src/nvim/eval.h +++ b/src/nvim/eval.h @@ -57,9 +57,9 @@ typedef struct lval_S { listitem_T *ll_li; ///< The list item or NULL. list_T *ll_list; ///< The list or NULL. int ll_range; ///< TRUE when a [i:j] range was used. + int ll_empty2; ///< Second index is empty: [i:]. long ll_n1; ///< First index for list. long ll_n2; ///< Second index for list range. - int ll_empty2; ///< Second index is empty: [i:]. dict_T *ll_dict; ///< The Dictionary or NULL. dictitem_T *ll_di; ///< The dictitem or NULL. char_u *ll_newkey; ///< New key for Dict in allocated memory or NULL. |