Which is faster in performance - dom4j or jdom?

  Jul 7, 2017

Which is faster in performance - dom4j or jdom?

Solved 0
dom4j xml jdom 2 months ago 1 Answer 0 views

Answers ( 1 )

  1. 2 weeks ago

    There are efficient automatic data binders, including JAXB (and with proper settings, XStream), which could help. They are faster than DOM, because the main performance problem with DOM (and JDOM, Dom4j and XOM) is that tree models are inherently expensive compared to POJOs -- they are basically glorified HashMaps, with lots of pointers for convenient untyped traversal; especially regarding memory usage.

Your Answer