Reduce memory usage
This MR aims to reduce dantro's memory usage through the following measures:
- In
dantro.utils.coords
, userange
objects instead of directly generating lists- This can and should be postponed as long as possible. Significantly reduces RAM use!
- Remove
_logstr
cache attribute fromAbstractDataContainer
(and thereby all tree objects)- Recomputing the value when needed (not that often) takes ~100 ns, so it's really not worth caching
-
Share(not done, not feasible)h5.File
objects between instances
Can this MR be accepted?
-
Implementation ready -
Tests added or adjusted -
Documentation extended or updated
-
Code quality -
Changes follow coding guidelines -
Checked code coverage on new and adjusted code
-
-
Ready for merging -
Pipeline passes without warnings -
History cleaned-up or squash option set -
Changelog entry added -
Version number bumped -
Reviewed & approved by @herdeanu
-
Related issues
Edited by Utopia Developers