[
https://issues.apache.org/jira/browse/PDFBOX-3791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16007990#comment-16007990
]
Tilman Hausherr commented on PDFBOX-3791:
-----------------------------------------
I tried optimizing the index in {{tempBytes\[x * numComponents + c]}} by using
an extra variable j that would be incremented. This would save 1/2 sec in
profiling but in real life it was similar or even slower so I'll just leave it
as it is.
That's all I can do for now. I'll do the memory optimization in DCTFilter.java
after the release because I want to have more time for feedback. You can also
try using the twelvemonkeys jpeg library, I don't know if it is faster but it
is certainly better (less bugs).
You can also build from source and have a look at
{{PageDrawer.setRenderingHints()}} and play with the parameters. This should
make it faster but it may not look good.
Your test file took about 16 secs before and now about 12 secs on my (old) PC.
> Long rendering time
> -------------------
>
> Key: PDFBOX-3791
> URL: https://issues.apache.org/jira/browse/PDFBOX-3791
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.5
> Environment: windows
> Reporter: Esteban Nicolas Ruiz
> Labels: optimization
> Attachments: slowrender.pdf
>
>
> Attached pdf file takes too long (more then 9 secs) to render in PDFDebugger
> (this is a simplified version of a real life pdf that I can not publish for
> privacy reasons, it takes 57 seconds to render and it contains 56 images and
> some text).
> I have tried with the options provided in
> https://pdfbox.apache.org/2.0/getting-started.html but performance is the same
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]