aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/marktree.h
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-08-22 13:12:58 +0200
committerGitHub <noreply@github.com>2021-08-22 13:12:58 +0200
commit7ebb25cca193063f0a3ff2ec8b6206e0832e1215 (patch)
treefbcfa265403eeaac463038c2b08cd2475f267b30 /src/nvim/marktree.h
parent3d3c0c669d054ef49304223e3b91ac820996d1e0 (diff)
parentc265fd31ab2b0307650ad94e1ea272e9360c345f (diff)
downloadrneovim-7ebb25cca193063f0a3ff2ec8b6206e0832e1215.tar.gz
rneovim-7ebb25cca193063f0a3ff2ec8b6206e0832e1215.tar.bz2
rneovim-7ebb25cca193063f0a3ff2ec8b6206e0832e1215.zip
Merge pull request #15451 from bfredl/metamap
perf(map): get rid of unnecessary pointer indirections for maps.
Diffstat (limited to 'src/nvim/marktree.h')
-rw-r--r--src/nvim/marktree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/marktree.h b/src/nvim/marktree.h
index 3b83e3c44d..7af23765c3 100644
--- a/src/nvim/marktree.h
+++ b/src/nvim/marktree.h
@@ -63,7 +63,7 @@ typedef struct {
uint64_t next_id;
// TODO(bfredl): the pointer to node could be part of the larger
// Map(uint64_t, ExtmarkItem) essentially;
- PMap(uint64_t) *id2node;
+ PMap(uint64_t) id2node[1];
} MarkTree;