Skip to content

feat: avoid explicit loop in CalorimeterIslandCluster #1864

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

wdconinc
Copy link
Contributor

Briefly, what does this PR introduce?

This PR adds some micro-optimization, primarily as proof of concept :-) and demo of good practice. Godbolt confirms equal or better speed for n from 10 to 100000 for compilers currently in use and for all execution policies. This is just stylistic, in a sense.

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue: prefer modern c++ with use of generic functions where possible)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

No.

Does this PR change default behavior?

No.

@github-actions github-actions bot added the topic: calorimetry relates to calorimetry label May 10, 2025
@wdconinc
Copy link
Contributor Author

wdconinc commented May 10, 2025

Comparison at -O3 between original and vectorized (unseq) version.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: calorimetry relates to calorimetry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant