[
https://issues.apache.org/jira/browse/PDFBOX-6263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18114877#comment-18114877
]
Tilman Hausherr commented on PDFBOX-6263:
-----------------------------------------
!screenshot-1.png!
So it happens in decodeHeightClassBitmap(). I split this in 3 methods and the
part that is slow is this:
{code:java}
for (int j = heightClassFirstSymbol; j <= i - 1; j++)
{
startColumn += newSymbolsWidths[j];
}
{code}
I wonder if this inner loop can be optimized, by using the result of the
previous outer loop.
> Slow jbig2 rendering for image that has many entries in the symbol dictionary
> -----------------------------------------------------------------------------
>
> Key: PDFBOX-6263
> URL: https://issues.apache.org/jira/browse/PDFBOX-6263
> Project: PDFBox
> Issue Type: Bug
> Components: JBIG2
> Reporter: Tilman Hausherr
> Priority: Minor
> Labels: optimization
> Attachments: bitmap-symbol-symhuff-texthuff-manysyms.jbig2,
> bitmap-symbol-symhuff-texthuff-manysyms.pdf, screenshot-1.png
>
>
> This file was sent to me by Nico Weber, he says that it times out. It did
> render after 135 seconds on my machine. There is a description in the
> external issue URL.
> He also wrote that the test is similar to
> https://www.sciencemadness.org/library/books/Mellor_ACTITC_11.pdf
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]