[honey] Avoid reading table vals we never use
commit88be8f85483ed77d1231e8711d94314035a31417
authorOlly Betts <olly@survex.com>
Thu, 8 Mar 2018 01:50:51 +0000 (8 14:50 +1300)
committerOlly Betts <olly@survex.com>
Thu, 8 Mar 2018 01:50:51 +0000 (8 14:50 +1300)
treea8416161663c0f6efc06b42740f17c2fcb5e7d80
parent6c858a442e0cad084d980671195829dc02a5085e
[honey] Avoid reading table vals we never use

Split read_item() into read_key() and read_val(), and when scanning
forwards through the SSTable use fh.skip() to skip vals.

With this, key_exists() now uses the index by just reusing the
implementation of get_exact_entry().

This reduces the time for a sample search by 18%.
xapian-core/backends/honey/honey_table.cc
xapian-core/backends/honey/honey_table.h