-
Notifications
You must be signed in to change notification settings - Fork 173
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
refactor: faster computation for binary search #3095
Conversation
📊: Physics performance monitoring for 61922bcphysmon summary
|
@CarloVarni do you have some numbers / plots on how much faster this is? Would it make sense to put this in some utility function for broader use or would this kill the performance? |
Hi @andiwand , it's the red line. This is the average execution time as a function of the size of the collection Btw, that piece of code is called around 18 times for each bin in the grid as of now. I am not sure how this will translate in the overall execution time on a tt-bar pu 200 Concerning utility function, I'm afraid this computation is too specific to this use case (and probably this is where it gets the perf boost). The general solution is the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall we leave this note for future developers?
otherwise looks good to go!
Co-authored-by: Andreas Stefl <stefl.andreas@gmail.com>
Faster binary search then `std::lower_bound`
Faster binary search then `std::lower_bound`
Faster binary search then `std::lower_bound`
Faster binary search then
std::lower_bound