hello-stephen commented on code in PR #70865:
URL: https://github.com/apache/doris/pull/70865#discussion_r4801340294


##########
be/src/storage/rowset/beta_rowset_writer.cpp:
##########
@@ -1101,6 +1104,9 @@ Status 
BaseBetaRowsetWriter::_build_rowset_meta(RowsetMeta* rowset_meta, bool ch
             segments_encoded_key_bounds.push_back(itr.second.key_bounds);
             // segcompaction don't modify _segment_num_rows, so we need to get 
segment rows from _segid_statistics_map for load
             segment_rows.push_back(cast_set<uint32_t>(itr.second.row_num));
+            if (!itr.second.variant_desc_fingerprint.empty()) {
+                desc_fingerprints.emplace_back(itr.first, 
itr.second.variant_desc_fingerprint);

Review Comment:
   [P3] Skip fingerprint copies when building temporary MoW rowsets. 
`_generate_delete_bitmap()` calls `_build_tmp()` once per completed segment on 
eligible loads. Those builds pass `completed_segment_ids`, so the guard below 
discards the digest vector even though this loop heap-copies every available 
64-character digest under `_segid_statistics_map_mutex`. For a rowset whose 
segments complete one at a time, that adds quadratic copy work across the 
temporary builds and holds the mutex longer for concurrent flushes. Gate digest 
collection on `completed_segment_ids == nullptr` as well.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to