From fe6f818642f912d3d3c3634f6346dbdfd314c433 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 13 Feb 2021 01:41:04 +0100 Subject: [PATCH] Take an assert off the hot path. Seemingly, Meson doesn't include -DNDEBUG by default, and this assert is pretty hot, to take it out to be sure. --- database-builder.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/database-builder.cpp b/database-builder.cpp index 76479aa..75b96f8 100644 --- a/database-builder.cpp +++ b/database-builder.cpp @@ -64,8 +64,6 @@ void PostingListBuilder::add_docid(uint32_t docid) return; } - assert(num_docids != 0); - pending_deltas.push_back(docid - last_docid - 1); last_docid = docid; if (pending_deltas.size() == 128) { -- 2.39.2