Parsing feed takes too long
GoogleCodeExporter opened this issue · comments
class Feedutils
document = reader.read(is); // dom4j Document
Maybe I can increase the heap-size on android?
Original issue reported on code.google.com by jens.goldhammer
on 31 Jan 2010 at 9:29
If xml loading via DOM is to slow we have to use a streaming based approach,
e.g. SAX
that makes the xml parsing part more complicated.
http://code.google.com/p/jlibs/wiki/SAX2JavaBinding
http://www.javaworld.com/javaworld/jw-05-2002/jw-0517-sax.html
Original comment by Florian....@gmail.com
on 3 Feb 2010 at 7:15
Yes, SAX Parsing would be better. Imagine a folder with 100 entries and we load
them
on the android and try to put them into memory...
+1 for using SAX
Original comment by jens.goldhammer
on 3 Feb 2010 at 9:38
Wrong article above... I'll try to use this way:
http://www.javaworld.com/jw-05-2001/jw-0511-sax.html
Original comment by Florian....@gmail.com
on 3 Feb 2010 at 8:50
- Added labels: Milestone-v0.1
This is also a good article about using sax on android...
http://www.ibm.com/developerworks/opensource/library/x-android/index.html
Original comment by jens.goldhammer
on 4 Feb 2010 at 8:42
Original comment by Florian....@gmail.com
on 11 Aug 2010 at 5:06
- Added labels: Milestone-v1.0
- Removed labels: Milestone-v0.1