message/field: cache the message's sexp
Keep it in the store; much faster than generating on the fly.
This commit is contained in:
@ -142,7 +142,7 @@ static void
|
||||
test_prefix()
|
||||
{
|
||||
static_assert(field_from_id(Field::Id::Subject).xapian_prefix() == 'S');
|
||||
static_assert(field_from_id(Field::Id::BodyHtml).xapian_prefix() == 0);
|
||||
static_assert(field_from_id(Field::Id::XBodyHtml).xapian_prefix() == 0);
|
||||
}
|
||||
|
||||
[[maybe_unused]]
|
||||
|
||||
Reference in New Issue
Block a user