目前,我正在对Smooks和c# code.Smooks进行性能测试
只适用于较大MB的文件,与c# code.For较低MB的文件相比,smooks和c#代码的运行时间几乎相同。所以我浏览了一下,为了提高smooks在低MB文件中的性能,我知道我们需要在smooks中禁用HTMLReportGenarator。请提前在此case.Thanks中帮助一下。
向您致敬,Pandiyan M
发布于 2018-10-18 15:32:11
根据smooks guide,不要在产品代码中使用HTMLReportGenerator
只在开发中使用HTMLReportGenerator。启用时,HTMLReportGenerator会产生显著的性能开销,对于较大的消息,甚至可能导致OutOfMemory异常。
从代码中删除与EventListener相似的HtmlReportGenerator
execContext.setEventListener(新HtmlReportGenerator("/tmp/smooks-report.html"));
https://stackoverflow.com/questions/52868688
复制相似问题