Ever wonder why COSMIC desktop seems way heavier than it should be, it's not the fault of Rust, it's actually the fault of a 2 decade old "bug" in glibc malloc, we're talking in some cases multiple GB more memory than it should be using https://fosstodon.org/@mmstick/113952008189644564
Michael A. Murphy :system76: (@[email protected])

PSA to #rustlang and #linux developers: there is a long-standing bug in the system allocator (glibc malloc) which causes it to hoard large sbrk buffers in arenas. By default, it uses heuristics to dynamically increase the mmap threshold—the point where it switches from using sbrk to mmap. In some scenarios, these larger buffers are never trimmed, causing a memory "leak". Some #libcosmic apps were affected, causing as much as 10-30x memory usage. To fix, see the PR below: https://github.com/pop-os/cosmic-bg/pull/73

Fosstodon
@BrodieOnLinux Yeah, I was wondering this, and also Cosmic is very slow for me.
@deadvey @BrodieOnLinux it feels really responsive to me even on old low-end hardware (i3-5005u)