thSoft / eclipse-commons

Eclipse Commons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Performance regression of PDF rendering

thSoft opened this issue · comments

In the new version of JPedal, PDF rendering takes a lot of time (e.g. displaying page 3 of score.ly in Mendelssohn's Psalm 42 takes around 60 seconds), and it is blocking the UI.

It might be worth trying JPedal version 7.x, but it has breaking API changes compared to 6.x.

I have just tried out the old JPedal version (4.X) with the infrastructure changes made in PdfViewPage. Annotation loading is not quite as fast as with 6.X, but it is not a difference of 1:10 but rather 9:10. So if 7.X does not bring any performance improvements (which I suspect, as the lost time seems not to be in the library but rather in jfx), I would suggest to go back to the original org.jpedal wrapper.

Locally, JPedal 7.X is as slow as 6.X and logs additional class cast exceptions. So, I don't think this is the way to go. If we don't want to incorporate a completely different pdf library, I suggest undoing the JPedal update.