On Sat, Feb 27, 2016 at 12:38 PM, Adrian Ivasku <[email protected]>
wrote:

> I am trying to make a news app that would read news from a particular web
> page... I have done this with Jsoup library but it is very slow... on a
> fast phone with good internet connection it takes for 3-6 seconds to load a
> page... and I have optimized the code that gets the Document object from a
> page...
>

1 - Identify the bottleneck. JSoup has convenience methods for getting a
resource off the network and parsing in one go. What if you do them
separately? What's the slowest point there? The parsing or network fetch?

2 - Use Volley to fetch the data and compare that to the time it take JSOUP
to fetch the data (excluding the parsing). Which is faster?

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANCScgh67SzZAExc2e_Qg%2BVUy8sqh_i2dEW4ww83DhWYzqA84A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to