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

Optimize idle farmer memory usage #2734

Merged
merged 1 commit into from
May 3, 2024
Merged

Conversation

nazar-pc
Copy link
Member

@nazar-pc nazar-pc commented May 2, 2024

For a long time we've been caching table generators to optimize allocations. But given how much time it takes to generate a sector, with recent API changes I don't think we need to keep them between sectors.

One farmer confirmed on Discord that they don't see a meaningful difference in plotting performance with this change. Memory usage should also be comparable during plotting, but once plotting is over memory usage should drop significantly.

On one hand user still needs to have that memory available once replotting starts, but it is still beneficial do do since kernel will be able to use this memory for disk caching purposes for example while farming, which is much more helpful than just keeping memory allocated by farmer at all times.

Also resolves one TODO that I didn't want to address during earlier refactoring and now will not need to.

Code contributor checklist:

@nazar-pc nazar-pc added this pull request to the merge queue May 3, 2024
Merged via the queue into main with commit 83f86cd May 3, 2024
21 checks passed
@nazar-pc nazar-pc deleted the optimize-idle-farmer-memory-usage branch May 3, 2024 05:14
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.

2 participants