diff options
author | Joshua Haberman <joshua@reverberate.org> | 2011-02-14 10:24:33 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2011-02-14 10:24:33 -0800 |
commit | 4f9aeee6c7414bec2e1d8a9d3508dbd21f4d3394 (patch) | |
tree | 9c612f70ba57a593b7885f8e7478cb0399d2c37a /src/upb_table.c | |
parent | 6117730c85e5d64239337f0e8514109054202f5a (diff) |
More completely fixed the 0-key thing.
Unfortunately this degrades hash table lookup performance by
about 8%, which affects the streaming benchmark for googlemessage1
by about 5%. We could get this back at the cost of some memory,
but it would be nice to avoid that.
Diffstat (limited to 'src/upb_table.c')
-rw-r--r-- | src/upb_table.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/upb_table.c b/src/upb_table.c index 39b8f20..720cc62 100644 --- a/src/upb_table.c +++ b/src/upb_table.c @@ -129,7 +129,6 @@ static void intinsert(upb_inttable *t, upb_inttable_entry *e) void upb_inttable_insert(upb_inttable *t, upb_inttable_entry *e) { - assert(e->key != 0); if((double)(t->t.count + 1) / upb_inttable_size(t) > MAX_LOAD) { /* Need to resize. New table of double the size, add old elements to it. */ upb_inttable new_table; |