Skip to content

Massive performance decrease in 0.12.35+ addText/getDirectives when ezTable column is too narrow #71

@andersLAL

Description

@andersLAL

Had a very weird issue where PDFs that we had been creating without any problems for years would suddenly timeout after 2-3 minutes. They used to take about 10-15 seconds to generate. After a lot of investigation I eventually tracked it down to a combination of R&OS PDF 0.12.35 and a table column that is slightly to narrow.

Difficult to explain in more detail, so a reduced test file is attached along with xdebug dumps of both 0.12.34 and 0.12.35 (issue also exists in 0.12.38). Changing the width of the column from 50 to 55 (line 27 in the test.txt - rename to .php) avoids the issue.

Screenshots from Cachegrind (with width = 50):
0.12.34
0 12 34_addtext
0 12 34_getdirectives

0.12.35
0 12 35_addtext
0 12 35_getdirectives

test.txt
xdebug.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions