Tagsoup and XOM on android
Can i use Tagsoup
and XOM
on andro开发者_Go百科id 1.6 without any performance problems ?
Performance considerations are unavoidable on a limited platform like a mobile phone. That said the Dalvik JVM in Android is highly optimised so any well performing library (and XOM is generally pretty good, I don't know too much and Tagsoup) will perform ok.
Your real performance problems here will stem from the structure and size of the XML documents you intend to process. XML processing is generally slow on any platform as it involves a lot of string parsing and manipulation by the XML parser. So on a limited platform use the smallest XML documents you can get away with. If you control the structure of the XML structure it in a way that you can get the information you need without have to repeatedly scan the entire document.
精彩评论