You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ttfunk is a font metrics parser for prawn. And prawn v2.2 depends on ttfunk ~> 1.5, so thinreports-generator that depend on prawn also depend on either ttfunk version v1.5.x or v1.6.x.
However, ttfunk v1.6.x is known to have the following performance issue: prawnpdf/ttfunk#82
As a result, PDF generation performance will also be reduced in environments and applications where thinreports-generator depends on ttfunk version 1.6.
Solution
This problem can be solved by making the dependent ttfunk version explicit in 1.5.x:
hidakatsuya
changed the title
30x slower depending on ttfunk v1.6.x than depending on ttfunk v1.5.x
30x slower depending on the ttfunk v1.6.x or later than depending on the ttfunk v1.5.x
Jan 18, 2021
Thinreports v0.12.0 was released yesterday, but this version has a note about the current status of this issue.
However, please note that there is no way to avoid this performance problem if you use prawn v2.3 or later, since prawn v2.3 or later depends on ttfunk v1.6 or later.
If you want to avoid this performance problem while using Thinreports v0.12.0, you can lock prawn with v2.2 in addition to ttfunk, as shown below:
Problem
ttfunk is a font metrics parser for prawn. And prawn v2.2 depends on
ttfunk ~> 1.5
, so thinreports-generator that depend on prawn also depend on either ttfunk version v1.5.x or v1.6.x.However, ttfunk v1.6.x is known to have the following performance issue:
prawnpdf/ttfunk#82
As a result, PDF generation performance will also be reduced in environments and applications where thinreports-generator depends on ttfunk version 1.6.
Solution
This problem can be solved by making the dependent ttfunk version explicit in 1.5.x:
The text was updated successfully, but these errors were encountered: