diff options
author | June McEnroe <june@causal.agency> | 2018-11-21 16:11:28 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-11-21 16:11:28 -0500 |
commit | 6957519054ad15b46c32c0ff1ec071d453fcefaf (patch) | |
tree | 90b748963e71fc0e83630bb0c3102f56a7887ff1 /bin/edi/edi.h | |
parent | Add bufferDelete (diff) | |
download | src-6957519054ad15b46c32c0ff1ec071d453fcefaf.tar.gz src-6957519054ad15b46c32c0ff1ec071d453fcefaf.zip |
Track hot slice in tables
Diffstat (limited to 'bin/edi/edi.h')
-rw-r--r-- | bin/edi/edi.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/edi/edi.h b/bin/edi/edi.h index 4e127b94..412e6d19 100644 --- a/bin/edi/edi.h +++ b/bin/edi/edi.h @@ -49,9 +49,10 @@ wchar_t *bufferDest(struct Buffer *buf, size_t len); struct Table { size_t len; + size_t hot; struct Slice *slices; }; -static const struct Table TableEmpty = { 0, NULL }; +static const struct Table TableEmpty = { 0, 0, NULL }; struct Table tableInsert(struct Table prev, size_t at, struct Slice ins); struct Table tableDelete(struct Table prev, struct Span del); |