root-project / opendata-benchmarks

Example repository showing benchmarks with open data
3 stars 7 forks source link

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

Closed ikabadzhov closed 1 year ago

ikabadzhov commented 1 year ago

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 https://github.com/root-project/rootbench/pull/266.

eguiraud commented 1 year ago

Thanks!