apps-android-wikipedia
apps-android-wikipedia copied to clipboard
Use Jsoup's stream implementation
Use Jsoup's custom stream implementation for lazy evaluation of HTML elements.
Could you be more specific about why this is an improvement?
Could you be more specific about why this is an improvement?
The select method that was being used earlier retrieves all the HTML elements at once. This change retrieves them one by one, which would improve performance when there are a lot of elements.
A bit of profiling shows no difference in performance.