Bug forwarded from Evince: http://bugzilla.gnome.org/show_bug.cgi?id=551638 "Please describe the problem: When opening bng.pdf within evince, it takes about 30 seconds on my E6600 for one page of the 20 page document to be rendered. The document can be downloaded here for reference: http://www.t-balancer.com/english/support.htm Direct link: http://www.t-balancer.com/download/bng.pdf Steps to reproduce: 1. Download http://www.t-balancer.com/download/bng.pdf 2. Open bng.pdf in evince 3. Wait for ages" I confirm it's specific to cairo backend.
I've been playing with sysprof and it seems the function GfxDeviceNColorSpace::getRGB is called too many times. The problem is with some images that have NumPixelComps == 1. In the splash backend they build a lookup table for these cases (See SplashOutputDev::drawImage()). I guess we could implement something like that in the cairo backend.
*** Bug 18119 has been marked as a duplicate of this bug. ***
I've finally implemented the same approach than splash in the cairo backend. Now it takes around 2 seconds to render the first page of bng.pdf.
*** Bug 22087 has been marked as a duplicate of this bug. ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.