Skip to content

fix: high memory usage - #41

Merged
Ryder-C merged 3 commits into
devfrom
fix-high-memory-usage
Jul 21, 2026
Merged

fix: high memory usage#41
Ryder-C merged 3 commits into
devfrom
fix-high-memory-usage

Conversation

@Ryder-C

@Ryder-C Ryder-C commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Problem

Seadexerr was using around 230 MiB of memory at all times, mostly because it deserialized way more of the mapping file than it needed to.

Changes

  • Parse mappings.json into borrowed keys with the values discarded (IgnoredAny) instead of building a full serde_json::Value tree (over 75k+ unnecessary keys)
  • Reuse a single reference-counted buffer for the parse and the disk write instead of holding two copies.
  • Cap the Tokio worker pool to 2.

Result

~230 MiB → ~39 MiB at idle

@Ryder-C
Ryder-C merged commit dc7b72f into dev Jul 21, 2026
2 checks passed
@Ryder-C
Ryder-C deleted the fix-high-memory-usage branch July 21, 2026 05:11
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