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

Timo Boehme commented on PDFBOX-2882:
-------------------------------------

The new ScratchFile* implementations gone through some iterations and I'm quite 
confident to have them correct and with good performance.

[~lehmi]: you mentored the previous implementation; would it be ok with you 
that I commit the replacement?

[~tilman]: would it be possible for you to test the implementation against your 
test collection? I would also be interested if you could set the main-memory 
usage in ScratchFile to some size (e.g. 10000000) by adjusting the constructor:
{code}
    public ScratchFile(File scratchFileDirectory) throws IOException
    {
        this(scratchFileDirectory, 10000000);
    }
{code}

> Improve performance when using scratch file
> -------------------------------------------
>
>                 Key: PDFBOX-2882
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2882
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Parsing
>    Affects Versions: 2.0.0
>            Reporter: Timo Boehme
>            Assignee: Timo Boehme
>            Priority: Minor
>         Attachments: ScratchFile.java, ScratchFileBuffer.java
>
>
> The current scratch file implementation uses many direct I/O calls which 
> slows down parsing compared with in-memory scratch buffer considerably.



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