-
Notifications
You must be signed in to change notification settings - Fork 667
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
Improve libdcd cython #3888
Improve libdcd cython #3888
Conversation
@@ -191,7 +191,7 @@ def _read_next_timestep(self, ts=None): | |||
if ts is None: | |||
# use a copy to avoid that ts always points to the same reference | |||
# removing this breaks lammps reader | |||
ts = self.ts.copy() | |||
ts = self.ts.copy() # why is this copy required ?? |
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.
@orbeckst @MDAnalysis/coredevs does anyone know specifically why this copy is required? None of the other readers use this pattern and it is ~30% overhead but removing it breaks a bunch of tests. I will keep working on it but if anyone has a quick answer would be appreciated.
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.
I will keep working on it in the meantime but the behaviour seems to be inconsistent with the other readers.
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.
I am going to move discussion to an issue.
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.
Moved to #3889
Codecov ReportBase: 94.36% // Head: 94.39% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #3888 +/- ##
===========================================
+ Coverage 94.36% 94.39% +0.03%
===========================================
Files 194 194
Lines 25109 25146 +37
Branches 3398 3398
===========================================
+ Hits 23694 23737 +43
+ Misses 1366 1360 -6
Partials 49 49
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
Looking fine. Just minor question and
- docs (versionchanged)
- Changelog update
thanks.
@hmacdope for my first review I only saw one set of changes. You clearly have a change log entry. For other things I just added comments. (Sorry for bad typing, reviewing from phone is not ideal) |
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.
@hmacdope can probably use a shared scratch buffer. You can raise an issue about deprecating that timeseries helper method
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.
only minimal doc/changelog updates — please do them but I'll approve as to not hold up
Performance improvement of ~ 12% with use of shared scratch buffer |
Windows C++ compiler seems to be complaining about libdcd, I'll revert it back to compiling as C sometime tommorow. |
@MDAnalysis/coredevs I think we are good to roll here? |
Fixes #3882 #3923
Improves the cython in the DCD reader to be more compiled.
Changes made in this Pull Request:
PR Checklist