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!
![]() |
speed up running time |
Post Reply
|
| Author | |
Dezhi
Beginner
Joined: 25 Jan 16 Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
Topic: speed up running timePosted: 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? |
|
![]() |
|
tfrost
Senior Member
Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
Post Options
Thanks(0)
Quote Reply
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?
|
|
![]() |
|
Dezhi
Beginner
Joined: 25 Jan 16 Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
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); } |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store