I were doing this with #2, which is slower than I expected ... I have yet to profile it, but with HTML file well under 10k it still take significant time (10s seconds up).
You may try my app Wand http://blog.wandhub.com/2009/08/wand-is-available-in-android-market.html and install the "cheatsheet", it will loads a page, parse it, and display list of hundreds of items. On Aug 17, 8:09 am, "droidin.net" <[email protected]> wrote: > Say it's clean enough to write a SAX handler with few possible > exception handling lines. I really don't want 3rd party jars. With > that aside - will it be faster to use ListView? > > Bo > > On Aug 16, 4:58 pm, Mark Murphy <[email protected]> wrote: > > > droidin.net wrote: > > > I guess to definitely answer this, one needs to run some benchmarks > > > but I'll ask anyway. In you opinion/experience what would work faster > > > after initial HTML is grabbed from the remote source. (The HTML is > > > group of one or two level nested OL or UL within body tag and some > > > DIVs) > > > > 1. Using WebView/JS/CSS to customize and render HTML into list-like UI > > > 2. Parse HTML into ListAdapter and then use ListView to render it > > > > My experience with #1 shows that it is actually pretty slow. Weird > > > thing is - once rendered - JS works quite well and fast it's really > > > initial parsing and loading that produces the delay > > > #2 will be limited by how clean your HTML is, unless you use TagSoup or > > something to parse it, and I have no idea if TagSoup or kin run on Android. > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://twitter.com/commonsguy > > > Android Development Wiki:http://wiki.andmob.org > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

