Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement of memory usage #306

Merged
merged 5 commits into from Jan 21, 2022
Merged

Improvement of memory usage #306

merged 5 commits into from Jan 21, 2022

Conversation

N720720
Copy link
Owner

@N720720 N720720 commented Jan 21, 2022

Description

I was able to reduce the memory allocation by one dimension. This is the dimension of the frames. The memory allocation is now completely independent of the length of the trajectory. This was made possible by the removal of the formation of nans in the algorithm and thereby the reduction of the dimension is already done in the loop. np.nanmean is thus no longer necessary and numpy functions can be used that are supported by numba.

Related Issue

#289

Type of Change

  • 馃摎 Examples / docs / tutorials / dependencies update
  • 馃敡 Bug fix (non-breaking change which fixes an issue)
  • 馃 Improvement (non-breaking change which improves an existing feature)
  • 馃殌 New feature (non-breaking change which adds functionality)
  • 馃挜 Breaking change (fix or feature that would cause existing functionality to change)
  • 馃攼 Security fix

Checklist

  • I've read the CODE_OF_CONDUCT.md document.
  • I've read the CONTRIBUTING.md guide.
  • I've updated the code style using make codestyle.
  • I've written tests for all new methods and classes that I created.
  • I've written the docstring in Google format for all the methods and classes that I used.

@N720720 N720720 merged commit cc4b4c9 into master Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant