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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mock factory memory improvements #330

Merged
merged 5 commits into from
Feb 2, 2016

Conversation

aphearin
Copy link
Contributor

@aphearin aphearin commented Feb 2, 2016

Previously, when populating mocks, the entire halo catalog was bound to the mock object. This memory usage was needless. Now only the rows passing the appropriate cuts are stored, and also only the columns required by the model. This should reduce the dominant source of memory usage of the mock factories factory by a few hundred percent.

CC @mjvakili - this is a pre-requisite to implementing the sample variance feature we have been discussing, but it should immediately improve the memory leak issue you may have been encountering.

aphearin added a commit that referenced this pull request Feb 2, 2016
@aphearin aphearin merged commit 03e44a3 into astropy:master Feb 2, 2016
@aphearin aphearin deleted the hod_mock_memory_improvements branch February 2, 2016 22:59
@rainwoodman
Copy link
Contributor

When we run halotools via the nbodykit wrapper we see the memory usage increase every time mock.populate is rerun. I think it is related to this. I am working on a reproducible test case, but any insights?

@aphearin
Copy link
Contributor Author

aphearin commented Jul 3, 2018

@rainwoodman - does the memory usage taper off after a few repetitions, or grow without bound? I think @johannesulf has reported a related issue before?

@rainwoodman
Copy link
Contributor

It doesn't taper off. See #917

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.

3 participants