From jkoshy@FreeBSD.ORG  Thu Aug 22 03:51:28 2002
Return-Path: <jkoshy@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 729)
	id 6937D37B400; Thu, 22 Aug 2002 03:51:28 -0700 (PDT)
Message-Id: <20020822105128.6937D37B400@hub.freebsd.org>
Date: Thu, 22 Aug 2002 03:51:28 -0700 (PDT)
From: Joseph Koshy <jkoshy@FreeBSD.ORG>
Reply-To: Joseph Koshy <jkoshy@FreeBSD.ORG>
To: freebsd-gnats-submit@freebsd.org
Cc: freebsd-doc@freebsd.org
Subject: [PATCH] Slowdown with DSSSL stylesheets v1.77

>Number:         41892
>Category:       docs
>Synopsis:       Patch to fix slowdowns of documentation builds
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 22 04:00:07 PDT 2002
>Closed-Date:    Sat Apr 26 14:32:27 PDT 2003
>Last-Modified:  Sat Apr 26 14:32:27 PDT 2003
>Originator:     Joseph Koshy
>Release:        FreeBSD 4.6-RC i386
>Organization:
The FreeBSD Project
>Environment:
System: FreeBSD ob9714.india.hp.com 4.6-RC FreeBSD 4.6-RC #2: Mon Jun 10 11:56:40 IST 2002 root@ob47191.india.hp.com:/home/obj-stable/home/src-stable/sys/OB47191 i386

>Description:

The function $verbatim-line-by-line$ in the DSSSL modular stylesheets
seems to be culprit.

>How-To-Repeat:

>Fix:

This is a workaround patch: don't use user-defined indents for
screen and programlisting elements.

Index: share/sgml/freebsd.dsl
===================================================================
RCS file: /home/ncvs/doc/share/sgml/freebsd.dsl,v
retrieving revision 1.64
diff -u -r1.64 freebsd.dsl
--- share/sgml/freebsd.dsl	27 Feb 2002 04:56:44 -0000	1.64
+++ share/sgml/freebsd.dsl	22 Aug 2002 11:21:36 -0000
@@ -600,11 +600,15 @@
       (define %may-format-variablelist-as-table%
         #f)
       
-      (define %indent-programlisting-lines%
-        "    ")
- 
-      (define %indent-screen-lines%
-        "    ")
+;;;
+;      Defining a user defined indent triggers a slowdown 
+;      in the DSSSL Modular stylesheets v1.77.
+;      (define %indent-programlisting-lines%
+;        "    ")
+; 
+;      (define %indent-screen-lines%
+;        "    ")
+;;;
 
       (define (article-titlepage-recto-elements)
         (list (normalize "title")
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: hrs 
State-Changed-When: Sat Apr 26 14:28:42 PDT 2003 
State-Changed-Why:  
The definitions were removed and replaced with 
the same functionality in docbook.css.  Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41892 
>Unformatted:
