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

Mel Martinez updated PDFBOX-601:
--------------------------------

    Attachment: PDSimpleFont.java
                PDFontDescriptorDictionary.java
                PDFont.java

I've attached revisions of PDFont, PDSimpleFont and PDFontDescriptorDictionary 
that all have various performance tweaks.

These are based on the TRUNK versions of the code as of jan 12, 2010.

> PDFBox performance issue:  PDSimpleFont, PDFont performance tweaks
> ------------------------------------------------------------------
>
>                 Key: PDFBOX-601
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-601
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 0.8.0-incubator
>         Environment: All
>            Reporter: Mel Martinez
>         Attachments: PDFont.java, PDFontDescriptorDictionary.java, 
> PDSimpleFont.java
>
>
> During text extraction, font size / descriptor / encoding attributes are 
> accessed repeatedly in order to do positional calculations and byte-character 
> conversions.
> The current code has several accessors for these things that redo rather slow 
> calculations each time - even thought the font object state is not changed.
> The results of these calculations should be persisted in instance fields once 
> calculated.  This greatly improves performance.
> I'll attach new versions of PDFont, PDFontDescriptorDictionary and 
> PDSimpleFont that have these tweaks.

-- 
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