From 6957519054ad15b46c32c0ff1ec071d453fcefaf Mon Sep 17 00:00:00 2001 From: Curtis 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 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); -- cgit 1.4.1