I think there is a significant amount of time being spent...
Don't "think there is", profile, and know there is. Something as coarse grained as logging the start / stop times of each of the steps (see Time::HiRes) may be enough.
| [reply] |
Also, large amounts of binary data(the PDFs) are best stored in files and not databases. While it might be handy, it can be rather slow, so you might want to try file-based storage.
~ Thomas~
confess( "I offer no guarantees on my code." );
| [reply] [d/l] |
Your question is better suited for a java forum since as you said, you can't replace it.
I can't see why you need java. PDFs are a tree-ish with some circular references, text format under the hood. From searching CPAN, I found CAM::PDF, which looks like it can manipulate the COS tree of a PDF. I've never used it personally. In other languages, I've written code that uses a PDF as a template, and using the PDF's COS tree format, fills in the data into the new PDF, not unlike HTML. Instead of java, you can try standalone text mode pdf tools, they will be faster than java since they are written in C/C++. | [reply] |