From owner-freebsd-www@FreeBSD.ORG Fri Jul 30 00:10:26 2004 Return-Path: Delivered-To: freebsd-www@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEF8E16A4CE for ; Fri, 30 Jul 2004 00:10:26 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1E8F43D5E for ; Fri, 30 Jul 2004 00:10:26 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i6U0AQJZ015509 for ; Fri, 30 Jul 2004 00:10:26 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6U0AQQr015508; Fri, 30 Jul 2004 00:10:26 GMT (envelope-from gnats) Resent-Date: Fri, 30 Jul 2004 00:10:26 GMT Resent-Message-Id: <200407300010.i6U0AQQr015508@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-www@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jie Gao Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E94516A54E for ; Fri, 30 Jul 2004 00:02:47 +0000 (GMT) Received: from ensc.cpsc.ucalgary.ca (ensc.cpsc.ucalgary.ca [136.159.2.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2E7D43D1F for ; Fri, 30 Jul 2004 00:02:46 +0000 (GMT) (envelope-from gaoj@cpsc.ucalgary.ca) Received: from imgw1.cpsc.ucalgary.ca (imgw1.cpsc.ucalgary.ca [136.159.5.9]) i6U02Ev1028198 for ; Thu, 29 Jul 2004 18:02:14 -0600 (MDT) Received: from aibsd (sana-sa [136.159.7.231])i6U029pi004043 for ; Thu, 29 Jul 2004 18:02:09 -0600 Received: by aibsd (sSMTP sendmail emulation); Thu, 29 Jul 2004 18:02:09 -0600 Message-Id: <200407300002.i6U029pi004043@imgw1.cpsc.ucalgary.ca> Date: Thu, 29 Jul 2004 18:02:09 -0600 From: "Jie Gao" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: www/69780: query-pr-summary.cgi generates very large html X-BeenThere: freebsd-www@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jie Gao List-Id: FreeBSD Project Webmasters List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jul 2004 00:10:27 -0000 >Number: 69780 >Category: www >Synopsis: query-pr-summary.cgi generates very large html >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-www >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jul 30 00:10:26 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Jie Gao >Release: FreeBSD 5.2-CURRENT i386 >Organization: >Environment: System: FreeBSD aibsd-current 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Thu Jul 15 10:00:38 MDT 2004 gaoj@aibsd-current:/usr/obj/usr/src/sys/AIBSD i386 >Description: The web page generated by query-pr-summary.cgi is very large. Today, my visit to http://www.freebsd.org/cgi/query-pr-summary.cgi resulted in a 1702446-byte html file. This is a bit too large for the people with slow internet connection. >How-To-Repeat: Visit http://www.freebsd.org/cgi/query-pr-summary.cgi with a www browser >Fix: I think the size can be reduced by doing the following: 1. Move the individual 'style="background-color: #ffffff"' code for each to a central style sheet, and define it for td. Only override the cells that need different background color. This could save about 700000 bytes (almost 40%). 2. Move the individual 'style="text-decoration: none;"' for the tags to a central style sheet, defining for "a" tag directly. This could save about 120000 bytes. 3. If we strip the spaces at the beginning of the lines, we can reduce the size with a further 90000 bytes. Totally the above measures can make the result less than half of the size now. >Release-Note: >Audit-Trail: >Unformatted: