MCPcopy Create free account
hub / github.com/apache/arrow / AlmostU8CompressibleVector

Function AlmostU8CompressibleVector

cpp/src/arrow/builder_benchmark.cc:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43constexpr int64_t kNumberOfElements = 256 * 512;
44
45static VectorType AlmostU8CompressibleVector() {
46 VectorType data(kNumberOfElements, 64);
47
48 // Insert an element late in the game that does not fit in the 8bit
49 // representation. This forces AdaptiveIntBuilder's to resize.
50 data[kNumberOfElements - 2] = 1L << 13;
51
52 return data;
53}
54
55constexpr int64_t kRounds = 256;
56static VectorType kData = AlmostU8CompressibleVector();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected