mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-14 14:59:52 -04:00
Switch to folly::small_vector as p99 match count is 1.
This commit is contained in:
parent
89f4a24fec
commit
01cd62d2fc
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user