JeffHoogland / qAndora

Pandora player written in Python and QT that uses VLC as a streaming backend
Other
16 stars 2 forks source link

Relatively high resource useage #4

Closed JasonLG1979 closed 10 years ago

JasonLG1979 commented 10 years ago

KDE system monitor shows qAndora using 65.5MB of RAM and 3% of my CPU. By comparison Pithos uses 27.8MB 1- 2% CPU. I'm sure it has a lot to do with the fact that though both programs basically do the same they're pretty different. qAndora - Qt toolkit, python 2.7, VLC backend. Pithos - GTK toolkit, python 3, Gstreamer backend.

JeffHoogland commented 10 years ago

I mean, Qt is generally considered a heavier toolkit. Not really sure what is to be done about this aside from me trying to rewrite qAndora using Qt5.

JasonLG1979 commented 10 years ago

How heavy is VLC compared to Gstreamer I wonder?

JasonLG1979 commented 10 years ago

Also Clementine is Qt and it's a full fledged music player and it only uses about 45MB of RAM and 2% CPU.

Not trying to throw stones. I know that premature optimization is the root of all evil,lol!!!

JeffHoogland commented 10 years ago

GStreamer VS VLC might be a big part of it as well. I went with VLC because it is cross platform, perhaps an option to chose from different streaming backends would be nice at some point as well (VLC vs GStreamer).

JasonLG1979 commented 10 years ago

Gstreamer is supposed to be cross platform. In my Windows days I played around with Songbird it used Gstreamer.

JeffHoogland commented 10 years ago

Learn something new every day - I'd just never heard of gstreamer on Windows so I assumed. Adding GStreamer support with an option to change between VLC and GStreamer to the TODO list.

JasonLG1979 commented 10 years ago

I'm not sure how well it works these days, I don't even recall if I had to install it separately or if they bundled it into the installer?

JasonLG1979 commented 10 years ago

Here's a link to Gstreamer installers for Windows. http://gstreamer.freedesktop.org/data/pkg/windows/1.4.3/

JasonLG1979 commented 10 years ago

Uses @ 40MB of RAM and @ 1% CPU after you switched to Gstreamer. I'm going to calk that up to Qt. and close this.

JeffHoogland commented 10 years ago

Great. I'm going to be implementing an option in the preferences so users can switch between the back ends.