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

100 times performance hit on creating images

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 2.0.6
    • Fix Version/s: None
    • Component/s: Rendering
    • Labels:

      Description

      We found that PDFBox creates a better image than poppler so we wanted to switch out our environment to get these improvements but found a file that took about 10 minutes to create one image with PDFBox and only about 6 seconds with poppler. So a 100 times performance hit if we where to change.

      I've done some rudimentary profiling on the code and found that most of the time is spent in ColorConvertOp.filter. Maybe there is a leaner way to implement this in order to get a better result?

      best regards
      Daniel

        Attachments

        1. test.pdf
          4.49 MB
          Daniel Persson
        2. callstack_1.png
          71 kB
          Daniel Persson
        3. callstack_2.png
          79 kB
          Daniel Persson

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kalaspuffar Daniel Persson
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: