Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Creating Document object is very slow

$
0
0
I am converting a PCL file to PDF, and it is taking me an average of 8 seconds.
I did some debugging and noticed that the following line of code takes an average of 6 to 7 seconds.

Document doc = new Document(pclFilePath, new PclLoadOptions());

Then I tried to create another Document object, in the same scope as the previous one

Document doc2 = new Document(pclFilePath, new PclLoadOptions());

and it took an average of 1 second.

Why does it take so much time to create a Document object the first time? And how can I make it faster?

Viewing all articles
Browse latest Browse all 3131

Trending Articles