Skip to content

DPL Analysis: Slicing optimization pass 1 - #16281

Open
aalkin wants to merge 26 commits into
AliceO2Group:devfrom
aalkin:slicing-optimization-pass-1
Open

aalkin wants to merge 26 commits into
AliceO2Group:devfrom
aalkin:slicing-optimization-pass-1

Conversation

@aalkin

@aalkin aalkin commented Dec 4, 2026

Copy link
Copy Markdown
Member

This is a collection of self-contained commits, addressing the performance issues from my TODO list and those exposed by test workflow in https://alimonitor.cern.ch/train-workdir/tests/0081/00811378/. This is a test PR, its components will be integrated separately and gradually through dedicated PRs.

The combined improvement is about x24 times in mixing process function and x49 in the simple grouping process function.

This PR includes a benchmark for the corner cases, such as the ones exposed by the test workflow and already known tight spots in sliced loops.

@BongHwi could you please test your workflows with this PR? It is less radical than skipping empty slices entirely as in #16005, but should still provide a considerable speedup. If that is not enough for your purposes, I will add the skipping policy to the combinations generator as well.

aalkin added 26 commits December 4, 2026 12:17
…tered iterator on an empty selection can be skipped
…binding the tables that are obtained by reference
@aalkin
aalkin marked this pull request as ready for review December 4, 2026 13:17
@aalkin
aalkin requested a review from a team as a code owner December 4, 2026 13:17
@BongHwi

BongHwi commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Thanks, @aalkin ! I tested this PR with the Omega2012 derived-data event-mixing workflows that exposed the original issue.

Using the same 7-DF input, analysis code and configuration, with mixing depth 10, I measured the following total workflow CPU times on an Apple M5 Ultra. Each value is the median of three runs:

Mixed-event channel Baseline This PR Speedup
Xi–K⁰S 237.00 s 13.35 s 17.75×
Xi(1530)–K 166.11 s 16.58 s 10.02×

All runs processed the full input. The ROOT outputs matched exactly between the baseline and PR runs, including the mixed-event histograms. I did not enable the skip-empty policy from #16005.

We're satisfied with this result!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants