From a95ab58e79c50b0927eae2b834d3de20a8effc36 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 28 Nov 2009 15:38:29 -0800 Subject: Overhaul defs to derive from a common base. --- src/upb_table.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/upb_table.h') diff --git a/src/upb_table.h b/src/upb_table.h index 3855e3e..2202684 100644 --- a/src/upb_table.h +++ b/src/upb_table.h @@ -34,13 +34,13 @@ struct upb_inttable_entry { uint32_t next; /* Internal chaining. */ }; -/* TODO: consider storing the hash in the entry. This would avoid the need to - * rehash on table resizes, but more importantly could possibly improve lookup - * performance by letting us compare hashes before comparing lengths or the - * strings themselves. */ +// TODO: consider storing the hash in the entry. This would avoid the need to +// rehash on table resizes, but more importantly could possibly improve lookup +// performance by letting us compare hashes before comparing lengths or the +// strings themselves. struct upb_strtable_entry { - struct upb_string key; - uint32_t next; /* Internal chaining. */ + struct upb_string *key; // We own one ref. + uint32_t next; // Internal chaining. }; struct upb_table { -- cgit v1.2.3