dborod;599630 Wrote: > While it seems that ipeng does frequently need to re-sync itself, no, it > wasn't syncing. > iPEng will have to re-sync whenever you do a change to the library. The Squeezebox Server doesn't have any protocol to get library updates.
With the size of your library I would expect this to take several minutes, depending on the speed of your server. I tested iPeng against a similarly sized library on a _very_ fast server and then it took around 5-6 minutes to download the full list of albums albeit under SBS 7.5, 7.6, at least with SQLite should be much faster. Anyway, during that time iPeng _will_ do heavy communication and the server should have quite some load. iPeng will also continue this in the background until it's finished so that you don't always end up with an incomplete list which would require re-syncing again. iPeng should _not_ do that just because you add a playlist. > > They come in batches of 25 songs. > That's how it works. iPeng requests batches of 25 tracks because the current playlist is not really fast in SBS, for Albums, Artists etc. it requests batches of 200-300 items. dborod;599635 Wrote: > I just did an experiment: > > 1) Using a web browser on a different computer than the SBS, I > connected to the SBS and added a 225 song playlist to the end of the > empty current playlist. CPU load on the SBS momentarily spiked, and a > few seconds later the current playlist was updated > The Web interface doesn't use the API but does all processing internally, you usually can't compare that. > > 2) Using ipeng on my phone (or ipad), I added the same playlist to the > end of the empty current playlist. CPU usage on the SBS spikes to 100% > for a couple of minutes, and it takes that long for the playlist to > show up in the browser too (in fact, the browser basically hangs). > Curiously, force quitting ipeng on the phone unblocks the browser > update and stops the CPU abuse. > > Something horribly inefficient seems to be happening... > This is a stored playlist, right? From the library? What iPeng does is send a single command (around 100 bytes) to the server to add the playlist, everything else around that part is being done by the server. It will then notice that the playlist has changed and download the new playlist for the current player (not the other ones) in batches of 25 tracks. Could you try a few things: 1. See what happens if you add a playlist using the web interface to a player that is the current player in iPeng and see how it behaves then? 2. If you have several players, could you add the playlist and immediately switch to another player in iPeng (one with a shorter playlist, I should add) and see if that stops the load. 3. Play the playlist instead of adding it to the empty playlist. -- pippin --- see iPeng, the Squeezebox iPhone remote and *New: iPeng for iPad*, at penguinlovesmusic.com ------------------------------------------------------------------------ pippin's Profile: http://forums.slimdevices.com/member.php?userid=13777 View this thread: http://forums.slimdevices.com/showthread.php?t=51929 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
