@nirbheek just saw your recent blog post about memory use in evolution. Programs...

@pid_eins@mastodon.social

@nirbheek just saw your recent blog post about memory use in evolution. Programs today really should react to memory pressure by calling malloc_trim(0). In systemd all long running services do that, it's a first class concept in systemd's event loop library for example. We even have high-level docs about this: systemd.io/MEMORY_PRESSURE/

I remember that someone was working on adding similar logic to gnome/glib, but no idea what happened. Bastien added an earlier concept for it, but it's awful.