Item12302: performance degradation on pages with multiple styled tables
Priority: Urgent
Current State: Duplicate
Released In: 1.2.0
Target Release: minor
Pages with lots of TML tables that are styled using something similar like
%TABLE{tableborder="0" cellpadding="1" align="center" valign="middle" databg="#D8DFF1, #E8EEF5" datacolor="#244E7E, #244E7E" headerbg="#C1D2EC" headercolor="#123D71",}%
will impact performance for no good reason. Profiling shows it to be related to the code adding inline css
to the head of the html page.
Profiling shows that _writeStyleToHEAD is responsible for this performance problem:
Switching off all %TABLE macros using
* Set TABLE =
mitigates the problem for a single page. For now it seems preferable
not to customize a table's look and feel using
TablePlugin and only make use of it for processing table data like sorting, things that are not css related.
--
MichaelDaum - 18 Dec 2012
See also quick fix at
Item12480.
--
MichaelDaum - 29 Apr 2013