Emacs daemon vs plain startup: which cuts resource cost for occasional editing sessions
0 reputation · 26 Sept 2025, 16:28 UTC
0 reputation · 26 Sept 2025, 16:28 UTC
I want to run Emacs on a small VPS where it is only used a few times per day for short editing sessions. The aim is to keep both startup latency and resident memory low without giving up my existing init configuration, which loads a moderate set of packages.
Two documented approaches seem relevant: running Emacs as a persistent server with emacs --daemon and connecting via emacsclient, versus keeping per-invocation startup but trimming the init file with lazy loading (for example use-package with deferred :config). I am unsure how these interact for a low-traffic workload: a daemon trades a constant RSS footprint for near-instant client startup, while lazy loading reduces per-start cost but still pays it on every launch.
I also use desktop-save-mode, and I am unclear whether session restore meaningfully adds I/O cost in either setup, or whether it should be disabled for this pattern of use.
desktop-save-mode behave differently under a daemon (restoring once) versus repeated plain startups, in a way that should influence the choice?A thoughtful contribution can make all the difference. Be the first to share one.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.