You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2018/08/07 16:07:00 UTC

[jira] [Commented] (PDFBOX-4288) needless adding while parsing dictionary objects

    [ 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org