-
Notifications
You must be signed in to change notification settings - Fork 189
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
Core: do_non_bonded, capture by reference rather than value #3161
Conversation
@RudolfWeeber was this in a debug built? |
Codecov Report
@@ Coverage Diff @@
## python #3161 +/- ##
======================================
- Coverage 85% 85% -1%
======================================
Files 526 526
Lines 25994 25946 -48
======================================
- Hits 22118 22066 -52
- Misses 3876 3880 +4
Continue to review full report at Codecov.
|
bors r+ |
3155: Fix regressions found by exotic archs r=KaiSzuttor a=jngrad Part of the [release checklist](https://github.com/espressomd/espresso/wiki/release-checklist#for-all-releases): run tests on exotic architectures and intel compiler. 3161: Core: do_non_bonded, capture by reference rather than value r=jngrad a=RudolfWeeber This fixes a performance regression from #3077, I think. Time per step fro lj benchmark went down from 0.78 to 0.38 ms 3162: Cleanup LB global variables r=KaiSzuttor a=jngrad Follow-up to #2628 Description of changes: - removed unused global variables in LB code - cleaned up documentation Co-authored-by: Jean-Noël Grad <[email protected]> Co-authored-by: Rudolf Weeber <[email protected]>
was this in a debug built?
No. First thing I checked.
Would you have expected the compiler to figure out that the copy wasn’t needed?
|
Yes, because |
Btw this should only capture the id, not the whole particle. This would also have avoided the regression... std::none_of(p1.el.begin(), p1.el.end(),
[id2 = p2.p.identity](int id) { return id2 == id; }); |
Build succeeded |
This fixes a performance regression from #3077, I think.
Time per step fro lj benchmark went down from 0.78 to 0.38 ms