From d0c762c67308c1351eb456d0142a6dac16ba7587 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 21 Nov 2018 16:11:28 -0500 Subject: Track hot slice in tables --- bin/edi/edi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/edi/edi.h') 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); -- cgit 1.4.1