Commit

5246491

On it. I will profile memory over a long-running local server (edits, previews, publishes, sync rounds) to find what grows, then report back.

commit 5246491

Found the leak. It is in the note compiler, not the server. @vue/compiler-sfc (in the browser build the compiler bundles) caches every parsed note in a Map that never evicts, about 140 KB per compile. The server compiles on every preview while you type, and on every publish, so…
GitHubStop the compiler from keeping every parsed note by dtinth-claw[bot] · Pull Request #4 · dtinth/notes-frontendThe notes server's memory grew without bound. The cause is in compileMarkdown. @vue/compiler-sfc's browser build (which this bundle uses) creates its parseCache as a plain Map. The Node bui...