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 | d0c762c67308c1351eb456d0142a6dac16ba7587 (patch) | |
tree | d67f1e0f35bd00667b5592e2f352341901d9fdf6 /bin/edi/edi.h | |
parent | Add bufferDelete (diff) | |
download | src-d0c762c67308c1351eb456d0142a6dac16ba7587.tar.gz src-d0c762c67308c1351eb456d0142a6dac16ba7587.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 3e43e40d..f37ad5ab 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); |