mapleFU commented on code in PR #45202:
URL: https://github.com/apache/arrow/pull/45202#discussion_r1908106005
##########
cpp/src/parquet/column_writer.cc:
##########
@@ -1468,42 +1468,43 @@ class TypedColumnWriterImpl : public ColumnWriterImpl,
public TypedColumnWriter<
// which case we call back to the dense write path)
std::shared_ptr<::arrow::Array> preserved_dictionary_;
- int64_t WriteLevels(int64_t num_values, const int16_t* def_levels,
+ int64_t WriteLevels(int64_t num_levels, const int16_t* def_levels,
const int16_t* rep_levels) {
+ // Update histograms now, to maximize cache efficiency.
Review Comment:
Don't fully understand why scaning a pass of `def_levels` and `rep_levels`
first would maximize cache efficiency, would `WriteDefinitionLevels` first also
update the LiD cache?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]