Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - speed up running time
  FAQ FAQ  Forum Search   Register Register  Login Login

speed up running time

 Post Reply Post Reply
Author
Message
Dezhi View Drop Down
Beginner
Beginner


Joined: 25 Jan 16
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dezhi Quote  Post ReplyReply Direct Link To This Post Topic: speed up running time
    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

Back to Top
tfrost View Drop Down
Senior Member
Senior Member


Joined: 06 Sep 10
Location: UK
Status: Offline
Points: 437
Post Options Post Options   Thanks (0) Thanks(0)   Quote tfrost Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Dezhi View Drop Down
Beginner
Beginner


Joined: 25 Jan 16
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dezhi Quote  Post ReplyReply Direct Link To This Post 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);

}

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store