我们的应用程序中存在一些性能问题,其中Crystal Reports(XI)托管在WCF服务中。在性能分析器的帮助下,我们能够发现对ReportDocument.Load的调用超过了10秒。如果我们深入挖掘,最有问题的一点是ReportClientDocumentClass.Open-method,它占用整个10秒。Crystal Reports - ReportDocument.Load性能不佳
我们调用负载方法是这样的:
dim doc As ReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument
doc.Load("filename")
报告文件比服务在同一台服务器上托管。
的“堆栈跟踪”为ReportDocument.Load看起来是这样的:
ReportDocument.Load
ReportClientDocumentWrapper.EnsureDocumentIsOpened
ReportClientDocumentWrapper.Open
ReportClientDocumentClass.Open
就像我上面提到的,调用ReportClientDocumentClass.Open是“挂”了一把。任何可能导致这种情况的想法?