[
https://issues.apache.org/jira/browse/PDFBOX-6263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18114901#comment-18114901
]
Tilman Hausherr commented on PDFBOX-6263:
-----------------------------------------
I asked the free version of Claude Code the same question and its solution was
1 line shorter. It didn't suggest ensureCapacity(). Both AI models understood
the O(n²) deficiency.
> 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
> Affects Versions: 3.0.5 JBIG2
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Minor
> Labels: optimization
> Fix For: 3.0.6 JBIG2
>
> 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]