Switch to folly::small_vector as p99 match count is 1.

This commit is contained in:
Marcus Holland-Moritz 2023-08-14 21:48:49 +02:00
parent 89f4a24fec
commit 01cd62d2fc

View File

@ -663,8 +663,7 @@ void segmenter_<LoggerPolicy, GranularityPolicy>::segment_and_add_data(
hasher.update(p[offset]);
}
// TODO: try folly::small_vector?
std::vector<segment_match<GranularityPolicy>> matches;
folly::small_vector<segment_match<GranularityPolicy>, 1> matches;
const bool single_block_mode = cfg_.max_active_blocks == 1;
auto total_bytes_read_before = prog_.total_bytes_read.load();