I have a PDF which contains a lot of Images. Each time, pdfbox parse the image it uses the colorspace to parse it and most of the time colorspace is the same object. I tried to cache the colorspace instances in PDColorSpace.java as shown in the attached patch. For this particular PDF, this change improves the performance of parsing and rendering the images from 15 minutes down to 3 minutes. I shared the PDF.