Skip to content

chore: reduce memory usage#113

Merged
Chnapy merged 4 commits intomainfrom
chore/reduce-memory-usage
Mar 28, 2026
Merged

chore: reduce memory usage#113
Chnapy merged 4 commits intomainfrom
chore/reduce-memory-usage

Conversation

@Chnapy
Copy link
Copy Markdown
Owner

@Chnapy Chnapy commented Mar 28, 2026

  • use MemoryCache (20s) for each StaticData entities and SavePkms DTOs
  • split StaticData in multiple cached entities: Evolves (lot of usages), Species (heavy), Spritesheets, Others
  • remove save clonage since each one can be heavy (>5Mo), so backup save-part is now file-based
  • merge save-related services, simplify logic

Backend memory is now expected to be around 200-300Mo in idle mode depending of opened saves.

@Chnapy Chnapy merged commit f93ccb8 into main Mar 28, 2026
1 check failed
@Chnapy Chnapy deleted the chore/reduce-memory-usage branch March 28, 2026 16:02
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.

1 participant