[ 
https://issues.apache.org/jira/browse/PDFBOX-602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mel Martinez updated PDFBOX-602:
--------------------------------

    Attachment: PDPage.java

Tweaks the PDPage.java class in a few spots to improve performance.

> PDFBox performance issue:  PDPage tweaks
> ----------------------------------------
>
>                 Key: PDFBOX-602
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-602
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 0.8.0-incubator
>         Environment: All
>            Reporter: Mel Martinez
>         Attachments: PDPage.java
>
>
> During parsing / text extraction the PDPage class' getMediaBox() and 
> getParent() methods are accessed many times.  They are currently slow because 
> the code recalculates the results each time.
> These should instead be persisted in instance fields so that they are only 
> calculated once unless the underlying object state has changed.
> I will attach a version of the file that includes the fix.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to