Scala XML performance versus Java XML

I would appreciate it if someone could point me aside or tell me about some tests that compare how the Scala XML library compares with a typical Java solution.

I am thinking about parsing and selecting XML elements.

Thanks in advance.

Regards, Stefan

+7
source share
2 answers

These tests from the "Anti-XML" team are a good place to start, and other parts of the site highlight some problems with the current scala.xml approach.

+4
source

Xml scales have a performance of about 20-30% slower than Xerces / JAXP delayed (the default setting, but overall the worst JAXP option for large xml) parts and diagrams .

Interestingly, the balance is 20-30% faster than JAXP for full parsing with low JAXP memory usage. In both cases, you get a completely unchanged document. Scales are also usually 30–40% faster than Scala.

+2
source

All Articles