I just checked in a SAX parser based version of dsl4xml to github, and finally got a chance to run the perf tests on an Android device. This is how it looks:

Notice that while it loses about 15% on raw SAX parsing, it still provides approximately an order of magnitude greater throughpout than the next best (raw pull parsing). And of course, its damn easy to write readable unmarshalling code with :)

I also added SimpleXML parsing to my performance tests - it ties for last place (performance-wise) with W3C DOM parsing. Arguably it is more readable and requires less code than the others, though personally I'm not a huge fan.

blog comments powered by Disqus