Item12302: performance degradation on pages with multiple styled tables

Priority: Urgent
Current State: Duplicate
Released In: 1.2.0
Target Release: minor
Applies To: Extension
Component: TablePlugin
Reported By: MichaelDaum
Waiting For:
Last Change By: MichaelDaum
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

ItemTemplate edit

Summary performance degradation on pages with multiple styled tables
ReportedBy MichaelDaum
SVN Range
AppliesTo Extension
Component TablePlugin
Priority Urgent
CurrentState Duplicate
TargetRelease minor
ReleasedIn 1.2.0
Topic attachments
I Attachment Action Size Date Who Comment
SnapShot1.pngpng SnapShot1.png manage 91 K 18 Dec 2012 - 16:35 MichaelDaum  
Snapshot2.pngpng Snapshot2.png manage 134 K 18 Dec 2012 - 16:36 MichaelDaum  
Topic revision: r4 - 14 Mar 2014, MichaelDaum - This page was cached on 15 Jan 2020 - 14:29.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy