简体   繁体   English

加载JasperPrint文件时JasperReports非常慢

[英]JasperReports very slow when loading JasperPrint file

I'm loading JasperPrint file and it's taking about 2 seconds to load a 60KB file. 我正在加载JasperPrint文件,加载60KB文件大约需要2秒钟。

String jpXML = .....;
InputStream is = new ByteArrayInputStream(jpXML.getBytes("UTF-8"));
JasperPrint jp2 = JRPrintXmlLoader.load(is); //This is taking 2 seconds

Does anybody know how to speedup this? 有人知道如何加快速度吗? The problem seems to be in the XML Digester... 问题似乎出在XML Digester中。

Thanks. 谢谢。

PROBLEM SOLVED!! 问题解决了!!

The JasperPrint load felt from 2000 miliseconds to 10 miliseconds. JasperPrint的加载时间从2000毫秒增加到10毫秒。

I've just updated this dependency from: 我刚刚从更新了此依赖项:

<dependency>
    <groupId>xerces</groupId>
    <artifactId>xercesImpl</artifactId>
    <version>2.10.0</version>
</dependency>

To

<dependency>
    <groupId>xerces</groupId>
    <artifactId>xercesImpl</artifactId>
    <version>2.11.0</version>
</dependency>

So there might be some performance issue with the version 2.10.0 of this lib. 因此,该库的2.10.0版可能存在一些性能问题。

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

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