pitrou commented on a change in pull request #7029:
URL: https://github.com/apache/arrow/pull/7029#discussion_r421435167



##########
File path: cpp/src/parquet/encoding_benchmark.cc
##########
@@ -199,6 +199,107 @@ static void BM_PlainDecodingFloat(benchmark::State& 
state) {
 
 BENCHMARK(BM_PlainDecodingFloat)->Range(MIN_RANGE, MAX_RANGE);
 
+static void BM_PlainEncodingSpacedBoolean(benchmark::State& state) {
+  const int num_values = state.range(0);
+  bool* values = new bool[num_values];
+  // Fixed half spaced pattern
+  std::vector<uint8_t> valid_bits(arrow::BitUtil::BytesForBits(num_values), 
0b10101010);

Review comment:
       Should use `std::vector` instead.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to