Mel,

Thanks for all the contributions and the excellent analysis and 
explanations.

--Adam



From:
"Mel Martinez (JIRA)" <[email protected]>
To:
[email protected]
Date:
01/14/2010 13:46
Subject:
[jira] Created: (PDFBOX-603) PDFBox performance issue:  Encoding.java 
getCharacter() method tweak



PDFBox performance issue:  Encoding.java  getCharacter() method tweak
---------------------------------------------------------------------

                 Key: PDFBOX-603
                 URL: https://issues.apache.org/jira/browse/PDFBOX-603
             Project: PDFBox
          Issue Type: Improvement
          Components: Text extraction
    Affects Versions: 0.8.0-incubator
         Environment: All
            Reporter: Mel Martinez
         Attachments: Encoding.java

During parsing / text extraction the Encoding.getCharacter(COSName) method 
is invoked repeatedly.

It includes a string test that is performed up front but should only occur 
rarely.  The code should be restructured slightly to only perform that 
test later. I.E. it should succeed fast and fail slow.

I'll post an attachment that rewrites the method slightly.  The 
performance gains is fairly significant.


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




?  Click here to submit conditions  

This email and any content within or attached hereto from  Sun West Mortgage 
Company, Inc.  is confidential and/or legally privileged. The information is 
intended only for the use of the individual or entity named on this email. If 
you are not the intended recipient, you are hereby notified that any 
disclosure, copying, distribution or the taking of any action in reliance on 
the contents of this email information is strictly prohibited, and that the 
documents should be returned to this office immediately by email. Receipt by 
anyone other than the intended recipient is not a waiver of any privilege. 
Please do not include your social security number, account number, or any other 
personal or financial information in the content of the email. Should you have 
any questions, please call  (800) 453 7884.   

Reply via email to