Print Page | Close Window

speed up running time

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3254
Printed Date: 24 Dec 25 at 3:08AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: speed up running time
Posted By: Dezhi
Subject: speed up running time
Date Posted: 25 Jan 16 at 5:44PM

Hi,

Our application is built using the Quick PDF Library (.dll).  So we now write out a PDF file using the Quick PDF library whereas we used to write out ascii PDF commands directly using our own code.  The library helps out greatly with many aspects of the proceiss.  However, we are now finding that the write out is taking unacceptably long for large files.  A write out that used to take two minutes can now take  up to an hour.  Most of what we are writing is lines.  Is there a way we can be sure we are writing these lines most efficiently?

 

Thanks,

Dezhi




Replies:
Posted By: tfrost
Date Posted: 25 Jan 16 at 6:03PM
You need to show some of your code.  What library command is used to write the file?  Have you checked where the delays occur, in building the PDF or in writing it to disk?  How big is the resulting PDF?


Posted By: Dezhi
Date Posted: 25 Jan 16 at 7:11PM
The resulting PDF file size  is 8,814KB.
 
We write out thousands of lines. When I use debug tool to break all, it is very often stopping at
ret = DPLDrawLinePtr(InstanceID, x1, y1, x2, y2);
 
in
 

popdfline(double x1, double y1, double x2, double y2)

{

DPLDrawLineType DPLDrawLinePtr = NULL;

int ret;

DPLDrawLinePtr = (DPLDrawLineType)GetProcAddress(dllHandle,"DPLDrawLine");

ret = DPLDrawLinePtr(InstanceID, x1, y1, x2, y2);

}




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk