Hi Roman,

On Wed, Mar 05, 2014 at 05:29:00PM +0100, Roman Seidl wrote:
> Dear Sonata-users!
> 
> I am using Sonata in full screen mode on a raspberry pi to choose my 
music via a remote. This is quite convenient. The only problem I have is 
speed. Well some things are just slow - this is a pi running X and this 
is always slow. I hope that being able to replace X within the next year 
> with wayland will help a little bit.
> 
> The only thing that is awfully slow is when I use the library and go 
from the contents of an album back to the list of albums.
> 
> Is the list re-fetched from the server? Or is it just the filling of the 
list that takes seemingly ages on the pi? I have quite a lot of albums 
on the machine...

If you are using the Git version of Sonata, you can launch
it with "-v -v" to have more debug information and see what's going on.

> Would it be possible to speed this up?
> 
> Anyone know what is really going on when go back from an album to the 
library overview?
> S
> If the albums are fetched every time caching the list would help. If 
they are cached one could not kill the list widget / replace the 
contents but set it overlay it with a second one that  shows the 
contents above and then remove that one again (set it invisible).

I don't think Sonata touches MPD when you go back to the album list,
once it's loaded it seems it doesn't load it twice.
However, it trashes quite a lot on my machine due to loading covers. It
gets better once they are loaded, but it looks like it loads all the
covers of all the album, which can take a while if you have many albums.

One way would probably be to limit the covers loaded with the one which
are actually displayed and load the other on-demand after.

> I could fetch the source and try to do that. I would just like to have 
some hints if this could be useful and how it could be done.

Well, you can have a look, but the library code is ... quite messy.

There was an effort a while ago to cleaned-it up by Adam Dane but he
never really finished and sadly its way to invasive to merge it now :/
You can have a look a try the hobophobe/cleanup-library branch in my
repository - if you manage to rebase it on top of master or merge it
with master without breaking everything, I even promise to spend some
time reviewing it and merging it :) (otherwise, I think I'm just going
to forget about it, but, heck...)

 Jonathan
_______________________________________________
Sonata-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/sonata-users

Reply via email to