Searched refs:groups (Results 1 – 3 of 3) sorted by relevance
106 std::vector<RangeSet> RangeSet::Split(size_t groups) const { in Split()107 if (ranges_.empty() || groups == 0) return {}; in Split()109 if (blocks_ < groups) { in Split()110 groups = blocks_; in Split()114 size_t mean = blocks_ / groups; in Split()115 std::vector<size_t> blocks_per_group(groups, mean); in Split()116 std::fill_n(blocks_per_group.begin(), blocks_ % groups, mean + 1); in Split()
58 std::vector<RangeSet> Split(size_t groups) const;
143 std::vector<RangeSet> groups = ranges.Split(thread_num); in ReadBlocks() local146 for (const auto& group : groups) { in ReadBlocks()