Skip to content

MRG, MAINT: Reduce memory usage of examples#8254

Merged
larsoner merged 3 commits intomne-tools:masterfrom
larsoner:circle
Sep 14, 2020
Merged

MRG, MAINT: Reduce memory usage of examples#8254
larsoner merged 3 commits intomne-tools:masterfrom
larsoner:circle

Conversation

@larsoner
Copy link
Copy Markdown
Member

Closes #8241

The goal is to reduce memory usage -- we'll see what CircleCI reports here vs on master. But some relevant test timings locally on master:

45.42s total   mne/minimum_norm/tests/
37.23s total   mne/tests/test_source_space.py
21.81s total   mne/forward/tests/
 0.00s total   mne/forward/_make_forward.py

This PR:

47.28s total   mne/minimum_norm/tests/
37.83s total   mne/tests/test_source_space.py
20.52s total   mne/forward/tests/
 0.00s total   mne/forward/_make_forward.py

So it looks like removing the preload=True from the read_source_space code (which was causing memory usage jumps in the hundreds of MB range) seems to be okay

@larsoner larsoner added this to the 0.21 milestone Sep 14, 2020
@larsoner larsoner merged commit b911a76 into mne-tools:master Sep 14, 2020
@larsoner larsoner deleted the circle branch September 14, 2020 17:17
@larsoner
Copy link
Copy Markdown
Member Author

These are hopefully pretty straightforward memory reduction methods, let's see if things work in master.

marsipu pushed a commit to marsipu/mne-python that referenced this pull request Oct 14, 2020
* MAINT: Reduce memory usage of examples

* STY: Fix [ci skip]

* FIX: verbose
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.

BUG: VTK/PyVista not freeing memory with multiple figures

1 participant