简体   繁体   English

Scala XML性能与Java XML

[英]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. 如果有人可以指出我的方向,或者告诉我一些基准,我将不胜感激,这是将Scala的XML库与Java中的典型解决方案进行比较的结果。

I'm thinking on measurements of parsing and selecting XML elements. 我正在考虑分析和选择XML元素的度量。

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 . Scales Xml的性能比Xerces / JAXP推迟的性能(默认设置,但对于大型xml而言,JAXP选项总体而言更差)的性能和图表大约慢20-30%。

Interestingly Scales is 20-30% faster than JAXP for full parsing while having the low memory usage of JAXP deferred. 有趣的是,对于完整解析,Scales比JAXP快20-30%,同时推迟了JAXP的低内存使用。 In both cases you get a fully immutable document. 在这两种情况下,您都会获得一个完全不变的文档。 Scales is also typically 30-40% faster than Scala parsing. 缩放通常也比Scala解析快30-40%。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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