You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2011/02/20 19:33:38 UTC
[jira] Resolved: (PDFBOX-948) Don't use temporty files by default
for all PDF sizes
[ https://issues.apache.org/jira/browse/PDFBOX-948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler resolved PDFBOX-948.
---------------------------------------
Resolution: Fixed
Fix Version/s: 1.5.0
Assignee: Andreas Lehmkühler
I added the patch in revision 1072678 as proposed.
Thanks for the contribution!
> Don't use temporty files by default for all PDF sizes
> -----------------------------------------------------
>
> Key: PDFBOX-948
> URL: https://issues.apache.org/jira/browse/PDFBOX-948
> Project: PDFBox
> Issue Type: Wish
> Affects Versions: 1.4.0
> Reporter: Martin Koegler
> Assignee: Andreas Lehmkühler
> Fix For: 1.5.0
>
> Attachments: default-inmemory-workfile.patch
>
>
> PDFBOX uses by default temporary files as work space (regardless of the PDF size).
> org.apache.pdfbox.io.RandomAcessFile is not buffered, so each read/write acess is a system call. There are functions like readlong, which call read 4 times to read 4 bytes. Additionally, it adds the usual problems with tempory files.
> For normal sized PDFs files, the in-memory implementation RandomAccessBuffer should not increase the memory usage too much, while providing faster IO as all access operations are only memory copies.
>
> Therefore, please consider switching the default to in-memory scratch buffers. Users with very large files can still pass a temporary directory.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira