What tips can be kept in mind to speed up jSoup? I am new to using jSoup and any tips on what I should do, what I should avoid, etc. It would be very helpful.
I just want to know some common things so that I don't slow down my own software.
For example, which is faster:
doc.select("[class=foo]:eq(0)").first()
or
doc.select("[class=foo]").first()
or
doc.select("[class=foo]:lt(1)").first()
Such things.
source share