You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Timo Boehme (JIRA)" <ji...@apache.org> on 2015/07/15 00:32:04 UTC

[jira] [Updated] (PDFBOX-2882) Improve performance when using scratch file

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

Timo Boehme updated PDFBOX-2882:
--------------------------------
    Attachment: ScratchFileBuffer.java
                ScratchFile.java

Drop-in replacement for classes in org.apache.pdfbox.io package. It keeps the single scratch file approach and paging but does not use linking between pages but direct index. Additionally pages can be re-used if buffers are closed. File-I/O is only necessary to read/write whole pages.
For a small test on loading PDF-reference file this implementation reduced the time needed by a factor of 2.

> 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
>            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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org