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 2012/07/15 15:22:34 UTC
[jira] [Created] (PDFBOX-1358) Reduce thw
Andreas Lehmkühler created PDFBOX-1358:
------------------------------------------
Summary: Reduce thw
Key: PDFBOX-1358
URL: https://issues.apache.org/jira/browse/PDFBOX-1358
Project: PDFBox
Issue Type: Improvement
Reporter: Andreas Lehmkühler
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (PDFBOX-1358) Reduce the memory consumption of a
RandomAccessBuffer
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-1358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler updated PDFBOX-1358:
---------------------------------------
Component/s: PDModel
Description: PDFBOX-1005 introduced a faster way to handle the growth of the RandowAccessBuffer. But the buffer is expanded by just doubling it which leads to a 2^n consumption of memory.
Affects Version/s: 1.7.0
Fix Version/s: 1.8.0
Assignee: Andreas Lehmkühler
Labels: memory (was: )
Summary: Reduce the memory consumption of a RandomAccessBuffer (was: Reduce thw)
> Reduce the memory consumption of a RandomAccessBuffer
> -----------------------------------------------------
>
> Key: PDFBOX-1358
> URL: https://issues.apache.org/jira/browse/PDFBOX-1358
> Project: PDFBox
> Issue Type: Improvement
> Components: PDModel
> Affects Versions: 1.7.0
> Reporter: Andreas Lehmkühler
> Assignee: Andreas Lehmkühler
> Labels: memory
> Fix For: 1.8.0
>
>
> PDFBOX-1005 introduced a faster way to handle the growth of the RandowAccessBuffer. But the buffer is expanded by just doubling it which leads to a 2^n consumption of memory.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (PDFBOX-1358) Reduce the memory consumption of a
RandomAccessBuffer
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-1358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler resolved PDFBOX-1358.
----------------------------------------
Resolution: Fixed
I replaced the existing implementation in revision 1361698. The buffer is divided in equals sized chunks so that it grows linear instead of 2^n. This should lower the memory consumption especially for bigger pdfs. I also added an unit test. I ran some performance tests and I couldn't find any regression.
> Reduce the memory consumption of a RandomAccessBuffer
> -----------------------------------------------------
>
> Key: PDFBOX-1358
> URL: https://issues.apache.org/jira/browse/PDFBOX-1358
> Project: PDFBox
> Issue Type: Improvement
> Components: PDModel
> Affects Versions: 1.7.0
> Reporter: Andreas Lehmkühler
> Assignee: Andreas Lehmkühler
> Labels: memory
> Fix For: 1.8.0
>
>
> PDFBOX-1005 introduced a faster way to handle the growth of the RandowAccessBuffer. But the buffer is expanded by just doubling it which leads to a 2^n consumption of memory.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira