gpodder / detlef

Detlef Gpodderson. An Android podcast application for gpodder.net.
https://play.google.com/apps/testing/at.ac.tuwien.detlef
GNU General Public License v2.0
18 stars 8 forks source link

Make refresh faster #24

Open Horrendus opened 11 years ago

Horrendus commented 11 years ago

Refresh takes quite some time when the user is subscribed to more podcasts, maybe change to device updates API endpoint

schuay commented 11 years ago

Yes, refresh takes way too long. Care to elaborate about the device updates API?

Horrendus commented 11 years ago

not sure if device updates helps or if it isn't already used. could you maybe tell me what is done (esp. which API endpoints are called [either via API endpoint or mygpoclient-java function]) then we can work out how to make it faster (I believe the reason why it takes longer than expected could be because other podcatchers [even some using gpodder.net] do the parsing of podcast feeds locally and Detlef relies completly on gpodder.net)

schuay commented 11 years ago

The code is contained in gpodder.SyncSubscriptionsAsyncTask and gpodder.PullFeedAsyncTask. Essentially, we push local changes and pull remote changes from gpodder.net, then pull all feed details from gpodder.net. We do not parse feeds locally.

schuay commented 11 years ago

I believe a large reason for the performance loss in the initial refresh (besides communication with gpodder.net) is that we refresh the episode list view whenever we add or change an episode. This can get expensive when refreshing several podcasts containing a large number of episodes.