[Piglit] [PATCH v2 6/8] html: Use the vastly faster "fixed" table layout algorithm.

Dylan Baker baker.dylan.c at gmail.com
Tue Apr 30 10:34:42 PDT 2013


From: Kenneth Graunke <kenneth at whitecape.org>

The usual "auto" table layout algorithm makes the browser look at the
contents of each row in the table in order to determine the layout.  We
have 10,000 rows.  This is insanely expensive.

The "fixed" algorithm just uses the <col/> info, and possibly the first
row.  This works out just fine.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Dylan Baker <baker.dylan.c at gmail.com>
---
 templates/index.css | 1 +
 1 file changed, 1 insertion(+)

diff --git a/templates/index.css b/templates/index.css
index 754be23..e1c2047 100644
--- a/templates/index.css
+++ b/templates/index.css
@@ -5,6 +5,7 @@ table {
 	padding-left: 1.75em;
 	padding-right: 1.75em;
 	width: 100%;
+	table-layout: fixed;
 }
 
 col:not(:first-child) {
-- 
1.8.1.4



More information about the Piglit mailing list