Very slow rendering with poppler-glib
There has been an issue reported in Evince, with a very slow PDF rendering, which does not happen with other PDF readers with poppler as backend. I have done some debugging, #1126 which seems quite similar in behavior. However, in that issue, it is hinted that the problem is related to cairo. Indeed, running evince under perf there clearly signals that the most busy paths are under libcairo. However, with the PDF attached in this issue, the hot path (perf.data) seems completely different, with 95% of the time spent under a function called cmsReverseToneCurveEx
, apparently coming from cmsCreateTransform
lcms2. I also run the pdf-inspector
, which showed that most of the time is spent in operator "TJ"
.
I would appreciate some guidance or comments on how to approach this. I would like to give it a try, but right now I seem to be quite far in my understanding to get through it.
Thanks a lot for your time!