You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Martin Koegler (JIRA)" <ji...@apache.org> on 2011/01/23 22:22:45 UTC
[jira] Created: (PDFBOX-948) Don't use temporty files by default
for all PDF sizes
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.5.0
Reporter: Martin Koegler
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.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (PDFBOX-948) Don't use temporty files by default
for all PDF sizes
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ 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
[jira] Updated: (PDFBOX-948) Don't use temporty files by default
for all PDF sizes
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jukka Zitting updated PDFBOX-948:
---------------------------------
Issue Type: Improvement (was: Wish)
> 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: Improvement
> 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
[jira] Updated: (PDFBOX-948) Don't use temporty files by default
for all PDF sizes
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler updated PDFBOX-948:
--------------------------------------
Affects Version/s: (was: 1.5.0)
1.4.0
> 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
> 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
[jira] Updated: (PDFBOX-948) Don't use temporty files by default
for all PDF sizes
Posted by "Martin Koegler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Koegler updated PDFBOX-948:
----------------------------------
Attachment: default-inmemory-workfile.patch
> 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.5.0
> Reporter: Martin Koegler
> 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.
-
You can reply to this email to add a comment to the issue online.