Skip to content

DPL Analysis: shortcircuit creation of empty slices#15480

Merged
ktf merged 1 commit into
AliceO2Group:devfrom
ktf:pr15480
Jun 7, 2026
Merged

DPL Analysis: shortcircuit creation of empty slices#15480
ktf merged 1 commit into
AliceO2Group:devfrom
ktf:pr15480

Conversation

@ktf

@ktf ktf commented Jun 3, 2026

Copy link
Copy Markdown
Member

Empty slices still do one allocation per column, so this is particularly
bad when there are many empty groups.

@ktf ktf requested a review from a team as a code owner June 3, 2026 12:39
@ktf

ktf commented Jun 3, 2026

Copy link
Copy Markdown
Member Author

@aalkin what do you think of this?

@aalkin

aalkin commented Jun 3, 2026

Copy link
Copy Markdown
Member

Seems like a good idea, a single allocation for an empty slice and a single construction of the table object that is reused for the full loop. How much is gained from this?

Empty slices still do one allocation per column, so this is particularly
bad when there are many empty groups.
@ktf ktf merged commit 07f6469 into AliceO2Group:dev Jun 7, 2026
17 checks passed
@ktf

ktf commented Jun 7, 2026

Copy link
Copy Markdown
Member Author

Validation report when running on the same file locally
comparison-eaf33119-vs-d154c4b6.pdf

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