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

Adrian Nistor updated PDFBOX-1455:
----------------------------------

    Attachment: patch.diff

patch
                
> wasted work in CIDType0Container.getFontProgramWidth()
> ------------------------------------------------------
>
>                 Key: PDFBOX-1455
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1455
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Adrian Nistor
>              Labels: patch, performance
>         Attachments: patch.diff
>
>
> The problem appears in revision 1414743.  I attached a three-line
> patch that fixes it.
> In method "CIDType0Container.getFontProgramWidth", the loops over
> "this.lCFonts" (outer loop) and "cMapping" (inner loop) should break
> immediately after "cidFound" is set to "true".  All the iterations
> after "cidFound" is set to "true" do not perform any useful work, at
> best they just set "cidFound" again to "true".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to