简体   繁体   中英

Any way to speed up RSS loading on an android app

I have to load around 25 rss feeds for the home page and that usually takes around 30s, which makes the app very slow. I was loading this in a nested for loop 5x5

After that, i tried loading them with parallelism with 5 tasks at a time and once they are done put them in a list. This produced slightly faster results but not much.

I thought of loading all 25 rss feeds at the same time at parallel, but this would eat up a lot of memory and crash the app.

Any suggestions on how to make rss loading faster. It just loads the title and one image.

Found the issue, some websites that I'm loading from are really slow. I just filtered them out and everything works a lot faster.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM