Rich-T-kid opened a new pull request, #27915:
URL: https://github.com/apache/datafusion/pull/27915

   ## Which issue does this PR close?
   
   - Working toward `RepartitionExec` optimizations.
   
   ## Rationale for this change
   
   `RepartitionExec` eagerly registers one `send_time` metric for every 
input/output partition pair. A 512×512 repartition therefore creates 262,144 
labeled timers before execution, including pairs that never send a batch.
   
   ## What changes are included in this PR?
   
   Register each `send_time` metric on first use and share output-partition 
labels across inputs. Used pairs retain the same input/output labels and 
values; unused zero-valued pairs are omitted.
   
   ## What is the testing strategy for this PR?
   
   Added coverage for lazy registration, fixed-membership metric snapshots, 
pair labels, timer reuse, and accumulation. Repartition tests, formatting, and 
all-target crate Clippy pass.
   
   Controlled local screening used existing queries with 14 samples per side 
and balanced ordering on exact base `20966cfb92e20b088b615c01aced53a0809fa466`; 
the candidate used the same production patch as this PR. Negative is better.
   
   | Workload | Partitions | Mean time | Median time | Peak RSS |
   |---|---:|---:|---:|---:|
   | TPC-DS Q64 | 8 | +1.22% | +0.11% | +0.27% |
   | TPC-DS Q64 | 128 | -2.05% | -3.19% | -2.44% |
   | TPC-DS Q64 | 512 | -23.34% | -22.39% | -25.36% |
   | TPC-H Q18 | 512 | -14.37% | -14.67% | -37.75% |
   | ClickBench Q32 | 512 | -0.42% | -0.77% | -8.26% |
   
   ## Are there any user-facing changes?
   
   Raw `send_time` metrics are now sparse: unused input/output pairs are no 
longer reported as explicit zero-valued metrics. Used-pair labels and values 
are unchanged.


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