ssb-patchwork process grew to 50% of memory use in top, on my 4 gb ram laptop. Luckily, restarting it dropped memory to 2%.
That process started life with a mostly empty ~/.ssb and downloaded all the backlog. Then I went offline for several hours and browsed pretty extensively through old posts, including scrolling many months back. So the memory use was probably caused by one of those things.
(Using patchwork-3.2.2-linux-x86_64.AppImage)
Hey, thanks for opening this issue. Are you still having this issue on the latest Patchwork? I think #858 may be relevant as well.
I have not noticed patchwork eating quite that much memory lately.
--
see shy jo
Isn't that the habit of electron applications in general?
@Serkan-devel it's the habit of web applications in general, as most web developers don't think to care about memory performance, electron is just an easy way to make a web application into a desktop application. fortunately Matt (who i consider _the_ expert in JavaScript memory performance from his work on Loop Drop) has invested a heap of time and energy into reducing bloat: https://github.com/mmckegg/patchtron, https://github.com/ssbc/patchwork/issues/858.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
Or could one just rewrite patchwork/ssb into something that isn't javascript?
It might reduce memory usage even further when it's written in something like Crystal
@Serkan-devel: i agree with what you're saying (see the Sunrise Choir for a complete re-write in Rust), but i don't appreciate how you're saying this ("one could just..." :confused: ) . if you want to reduce memory usage in Scuttlebutt, please help us by contributing!
to paraphrase %4JT/+ITi0ecWU8n1/DWqt3+SNxagF76b33MyJ/CAdTU=.sha256:
I mean I believe [we need] people working on hard problems… more than [we need] people confirming that [hard problems exist]
I have not noticed patchwork eating quite that much memory lately.
Closing (not that performance is ever a solved problem).
Most helpful comment
@Serkan-devel it's the habit of web applications in general, as most web developers don't think to care about memory performance, electron is just an easy way to make a web application into a desktop application. fortunately Matt (who i consider _the_ expert in JavaScript memory performance from his work on Loop Drop) has invested a heap of time and energy into reducing bloat: https://github.com/mmckegg/patchtron, https://github.com/ssbc/patchwork/issues/858.