Repository navigation
fix: reduce daemon and worker startup memory - #1375
Merged
willkill07 merged 1 commit intoOct 16, 2026
Merged
Conversation
Signed-off-by: Will Killian <[email protected]>
Contributor
bbednarski9
reviewed
Oct 16, 2026
This was referenced Nov 9, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Reduce the memory used when starting
nemo-relay daemonandnemo-relay daemon worker. The daemon now loads routing settings without checking local plugins. Gateways and workers still check plugin integrity, using file streams to avoid large temporary buffers.Details
On macOS, with the same installed Tokenomics plugin enabled, peak physical footprint fell from 112 MiB to 9.1 MiB for the daemon and from 561 MiB to 12.5 MiB for the worker. The worker completed plugin validation and reached readiness with its existing attestation.
Validation:
env -u NEMO_RELAY_LOG -u NEMO_RELAY_LOG_STDERR_FORMAT just test-rust: all 5,903 tests passed. The inherited logging overrides conflicted with two CLI logging tests in the initial run.uv run pre-commit run: passed, including Clippy, formatting, and documentation links.Where should the reviewer start?
Start with
resolve_daemon_configincrates/cli/src/configuration/mod.rsand its call incrates/cli/src/daemon/broker/server.rs. Then reviewcrates/cli/src/filesystem/bounded.rs: streamed hashes use the length and bytes from the same open file, and reads fail if the length changes. The digest compatibility test is incrates/cli/tests/coverage/shared/plugins_lifecycle_tests.rs.Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
Summary by CodeRabbit