简体   繁体   中英

Scala XML performance vs. Java XML

I would appreciate if anyone could point me in the direction, or inform me of some benchmarks, which is comparing how Scala's XML library does compared to the typical solution in Java.

I'm thinking on measurements of parsing and selecting XML elements.

Thanks in advance.

Regards Stefan

来自“ Anti-XML”团队的 这些基准是一个不错的起点, 该站点的其他部分重点介绍了当前scala.xml方法的一些问题。

Scales Xml has performance roughly 20-30% slower than Xerces/JAXP deferred (the default setting but overall worse JAXP option for large xml) details and charts .

Interestingly Scales is 20-30% faster than JAXP for full parsing while having the low memory usage of JAXP deferred. In both cases you get a fully immutable document. Scales is also typically 30-40% faster than Scala parsing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM