Repository navigation
Commit e2014b3
committed
perf: compute output_bytes without building ArrayData
Closes #26071
`BaselineMetrics::record_output` called `get_record_batch_memory_size`
for every output batch, which materializes `ArrayData` and inserts every
buffer address into a hash set. Compute `output_bytes` as the sum of
each
column's `Array::get_array_memory_size` instead, which never builds
`ArrayData`.
`get_record_batch_memory_size` is unchanged and remains what memory
reservations use, since those need exact deduplicated accounting.1 parent 81ffb0c commit e2014b3
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
| 362 | + | |
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| |||
0 commit comments