openstreamorg / openstreammusic

The OpenStream Music source
GNU General Public License v2.0
1 stars 2 forks source link

RAM hog #5

Open Botspot opened 11 months ago

Botspot commented 11 months ago

Look at the RSS column: that is actual RAM usage. image That totals out to nearly 700MB, which is a lot for Raspberry Pi computers with 1GB of RAM. Even on my 8GB Pi4 I had to close out of my web browser to prevent slowdowns. The Pi zero W has 500MB of RAM - it would not even be able to open the app without freezing. At its core, this is a music streaming program. It should not take nearly 300MB to install and >500MB of RAM. Linux users will uninstall this in disgust and call it 'bloatware', and I would have to partially agree with them. Try looking into ways to minimize RAM usage. You may want to look into rebuilding the UI with QT - which is cross-platform and supports Windows and Linux.

techguy16 commented 11 months ago

I like Electron better.

Botspot commented 11 months ago

Try looking into ways to minimize RAM usage.

This is possible under Electron. It just takes research. I've seen it use less than 300MB, though I am not sure how exactly to do this. I would suggest that this issue be re-opened with the purpose of finding ways to reduce Electron's ram usage.

techguy16 commented 11 months ago

I've found that only using modules when needed can limit RAM usage - it seems to work. Due to come in 1.4

techguy16 commented 3 months ago

Screenshot from 2024-06-24 07-23-01

216MB of RAM usage is slightly better. Electron says it uses about 158MB of RAM: image