Mercurial > vim
comparison src/structs.h @ 15271:a6319aca721b v8.1.0644
patch 8.1.0644: finding next sign ID is inefficient
commit https://github.com/vim/vim/commit/6436cd83f90a0efc326798792e49e8ff96a43dce
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Dec 27 00:28:33 2018 +0100
patch 8.1.0644: finding next sign ID is inefficient
Problem: Finding next sign ID is inefficient.
Solution: Add next_sign_id. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/3717)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 27 Dec 2018 00:30:06 +0100 |
parents | b42b47c0bb80 |
children | 7f42b06b2f72 |
comparison
equal
deleted
inserted
replaced
15270:18c956b49ee5 | 15271:a6319aca721b |
---|---|
735 #if defined(FEAT_SIGNS) || defined(PROTO) | 735 #if defined(FEAT_SIGNS) || defined(PROTO) |
736 // Sign group | 736 // Sign group |
737 typedef struct signgroup_S | 737 typedef struct signgroup_S |
738 { | 738 { |
739 short_u refcount; // number of signs in this group | 739 short_u refcount; // number of signs in this group |
740 int next_sign_id; // next sign id for this group | |
740 char_u sg_name[1]; // sign group name | 741 char_u sg_name[1]; // sign group name |
741 } signgroup_T; | 742 } signgroup_T; |
742 | 743 |
743 // Macros to get the sign group structure from the group name | 744 // Macros to get the sign group structure from the group name |
744 #define SGN_KEY_OFF offsetof(signgroup_T, sg_name) | 745 #define SGN_KEY_OFF offsetof(signgroup_T, sg_name) |