We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Slow performance on first use of Aspose.Cells Library

Hi,

I’ve been evaluating Aspose.Cells as part of my application
for converting Excel files to PDF and HTML. I’m happy with the quality
of the files it produces, but there is one obstacle to overcome before
purchasing.

After starting my test application, the first
conversion takes significantly longer to perform than any subsequent
conversions. The first time around, converting one of my test Excel
files to PDF takes about 3-5 seconds. If I delete the PDF file and
re-run the conversion, it takes about .3 seconds. I only see the problem
the first time I use the library after starting the conversion.

I am not using the Aspose.Cells.dll with authenticode, I’ve tried the dll’s from the .net 2.0 and .net 3.5 folders.

Is
this a known issue, and is there anything I can do to prevent this? I
can post my test application and the files I’m using if necessary.

Thank you.

Hi,

Thanks for providing some details.

Well, Aspose.Cells for .NET is created in managed C# to create, manipulate, convert, render or print MS Excel file formats. I think this is more of a JIT compiler's feature not a performance issue of Aspose.Cells library i.e., when a managed method is called first time, the JIT compiler is triggered and it starts to compile the method(s) for the current and future calls accordingly. The compile process can take some time and this might be a reason of your issue. You may try to pre-load Aspose.Cells assembly methods manually to decrease the first call time or use NGEN tool if it may help you.

Thank you.