Skip to content

StepTHn: do a pre lookup for the bin using a uniform grid#15444

Open
ktf wants to merge 2 commits into
AliceO2Group:devfrom
ktf:pr15444
Open

StepTHn: do a pre lookup for the bin using a uniform grid#15444
ktf wants to merge 2 commits into
AliceO2Group:devfrom
ktf:pr15444

Conversation

@ktf
Copy link
Copy Markdown
Member

@ktf ktf commented May 27, 2026

Rather than doing a O(log N) binary search for the correct bin, precompute a uniform index for a O(1) lookup and find the actual bin using a short linear search.


Stack created with Sapling. Best reviewed with ReviewStack.

ktf added 2 commits May 26, 2026 21:13
Replaces 4 virtual calls to GetAt / SetAt / AddAt  with just one to updateBin.
Rather than doing a O(log N) binary search for the correct bin, precompute a uniform index for a O(1) lookup and find the actual bin using a short linear search.
@ktf
Copy link
Copy Markdown
Member Author

ktf commented May 27, 2026

@jgrosseo with these two I gain 10% in performance for the Correlation business. On hyperloop the results seem to be compatible, for what I can tell. Can you validate and eventually merge?

@jgrosseo
Copy link
Copy Markdown
Collaborator

I can look into this next week...

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