[ 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