Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5685

Reduce number of copies to lower memory footprint

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0 PDFBox
    • 3.0.1 PDFBox, 4.0.0
    • IO
    • None

    Description

      The user bnncdv reported some regressions in 3.0.0 on the users mailing list.

      If an input stream is used as source for a pdf every time the parser creates a view a copy of the RandomAccessReadBuffer holding the input stream is created. The duplicated byte buffers are reused but if it comes to larger pdfs the number of duplicated objects matter.

      I was able to reproduce that behaviour.

      Attachments

        Activity

          People

            lehmi Andreas Lehmkühler
            lehmi Andreas Lehmkühler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: