music icon indicating copy to clipboard operation
music copied to clipboard

Reduce ram usage

Open pibiba opened this issue 11 months ago • 1 comments

Problem

The problem with the program is that it is absolutely not optimized! At startup, it eats up almost 120M of memory, although it does nothing! After adding my music collection as a 10GB flac, the player starts "eating" 1 gigabyte of RAM! So, for reference, my entire environment after startup eats up almost 700M of RAM! The entire environment! And here is only the player!

Image

Image

Proposal

I would like the player to consume much less resources! Similar processes, for example, mpd+ncmpcpp consume, ATTENTION, slightly less than 30M each! That is, less than 100M both! With the same music collection! The gap is just huge!

Image

Prior Art (Optional)

No response

pibiba avatar Jan 29 '25 12:01 pibiba

To be fair ncmpcpp is an NCurses interface while io.elementary.music is a Gtk4 one (In a flatpak sandbox with all its libraries, even!) That is like comparing a bike to a tank.

Music sits at 37 Mb here, right now, playing a couple MP3, on a development version with more features And i can think of a few reasons why it takes less. Caching to name one. If an app takes RAM, it does not necessarily means it is unoptimised

I feel like for 10Gb flac, it is not really a big surprise to have it shot up at 1Gb. The Ncurses app probably does not even have to keep and display cover art either

teamcons avatar May 27 '25 21:05 teamcons

No longer relevant.

pibiba avatar Oct 03 '25 04:10 pibiba