Ok, I tried with evince and didn't notice the slowness thanks to the evince page cache :-P The problem is not cairo backend specific, since most of the time is spent in GfxCalRGBColorSpace::getRGB(). With commit 65c14073a3b1035ca5fe3bd6667abd315272841e I've reduced the time to render page 4 from more than 5 seconds to around 3 seconds, so it's still a bit slow.
Ok, I tried with evince and didn't notice the slowness thanks to the evince page cache :-P The problem is not cairo backend specific, since most of the time is spent in GfxCalRGBColorS pace::getRGB( ). With commit 65c14073a3b1035 ca5fe3bd6667abd 315272841e I've reduced the time to render page 4 from more than 5 seconds to around 3 seconds, so it's still a bit slow.