[ 
https://issues.apache.org/jira/browse/PDFBOX-4288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16571894#comment-16571894
 ] 

Tilman Hausherr commented on PDFBOX-4288:
-----------------------------------------

 Wow! Great find! 4.3GB before, 2.3GB after (W10, looking at task manager)

You are right: {{parseDictObjects()}}, which goes through this list, processes 
only COSDictionary, COSArray and COSObject.

> needless adding while parsing dictionary objects
> ------------------------------------------------
>
>                 Key: PDFBOX-4288
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4288
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.11
>            Reporter: Hee Jeong Kim
>            Priority: Minor
>              Labels: optimization
>         Attachments: needless_adding_while_parsing_dictionary_objects.patch
>
>
> Hi, It seems like unnecessary objects(COSNull, COSFloat..) are also added to 
> 'toBeParsedList' while parsing dictionary objects and this can impact on 
> performance.
> You can download a file causing out of memory exception while parsing 
> dictionary objects below,
> https://turnernbahangtime.files.wordpress.com/2017/10/2017-18-official-nba-guide_v2.pdf
> and please check the attached patch that avoids unnecessary adding operations.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to