Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove call to VecOps::Combinations in query 6 #19

Merged
merged 1 commit into from
Feb 6, 2023

Conversation

ikabadzhov
Copy link
Contributor

VecOps::Combinations creates a jets.size()x3 matrix. Moreover, this newly created matrix is used only as index, such as jets[c[0][i]]. It makes sense to get rid of this matrix and access the elements directly. In this case, we have contiguous memory access only. Hence, improved performance of the find_triject function.

Analogous to root-project/rootbench#266.

VecOps::Combinations creates a jets.size()x3 matrix.
Moreover, this newly created matrix is used only as index, such as jets[c[0][i]].
It makes sense to get rid of this matrix and access the elements directly.
In this case, we have contiguous memory access only.
Hence, improved performance of the find_triject function.

Analogous to root-project/rootbench#266.
@ikabadzhov ikabadzhov requested a review from eguiraud February 6, 2023 16:08
@eguiraud
Copy link
Member

eguiraud commented Feb 6, 2023

Thanks!

@eguiraud eguiraud merged commit 298ba48 into root-project:master Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants