Performance Issue?

Performance Issue?

Forum member · Jan 3, 2008
We have a process that is very simple: merge a bunch of text files into one PDF. No image, no formatting, just 9pt. Courier. The problem is in the volume: our largest document concatenates 600 text files into a PDF of almost 15,000 pages. Smaller documents (like 2500 pages or so) are very fast, they only take about 3 seconds to process all of the files and another 5 seconds to create the document (calling the "draw()" method). It is hard to determine the threshold, it seems to move around, but it appears that around 3000 pages the processing time jumps to about 2 minutes. Processing more pages then that the time continues to jump exponentially. The memory use also jumps from about 500 MB to about 1.5 GB and above. What would be causing this? Not enough memory? Something else? Thanks, Lonnie

Re: Performance Issue?

Support · Jan 3, 2008
We do not impose any specific limits on our products in terms of size or length of the documents. The only real limitations would be imposed by the resources of the machine. How much memory do you have on the machine? That being said, the first thing I would want to do Lonnie is take a look at how you are loading the text files and how you are adding them to the page. In fact if you could write down a couple lines of code that would demonstrate how you are converting one or two of the text files into PDF documents and then the lines of code that are used to output that file, then send over those one or two documents, we will be able to analyze this and see if we can spot any misuse of resources or non-recommended coding techniques. It would be my guess that there is something going on in your code that could maybe be a bit more efficient but it is hard to say without more details. Please send over the sample code and a few file to [^a|mailto:support@cete.com|support@cete.com^] while referencing this forum post. We will take a look and get back to you. Thanks, ceTe Software Support Team