[ 
https://issues.apache.org/jira/browse/PDFBOX-3233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15154050#comment-15154050
 ] 

Isto Nikula commented on PDFBOX-3233:
-------------------------------------

Using resource cache seems to improve performance quite a lot at least for some 
PDFs: I made a test case demonstrating this here 
https://github.com/istonikula/pdfbox-3233. When running without cache the test 
takes around 8s to complete, compared to  0.8s with cache.

I was running the test on OSX El Capitan 2.2 GHz i7 with oracle jdk 1.8.0_51-b16

> Create default resources with cache
> -----------------------------------
>
>                 Key: PDFBOX-3233
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3233
>             Project: PDFBox
>          Issue Type: Wish
>          Components: AcroForm
>    Affects Versions: 2.0.0
>            Reporter: Isto Nikula
>            Priority: Minor
>              Labels: newbie
>
> NOTE: actual version is 2.0.0-RC3
> In PDAcroForm#getDefaultResources existing resources are created like this:
> {code}
>         COSDictionary dr = (COSDictionary) 
> dictionary.getDictionaryObject(COSName.DR);
>         if (dr != null)
>         {
>             retval = new PDResources(dr);
>         }
> {code}
> PDResources supports resource cache but default resources is always created 
> without one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to