From xemacs-m  Mon Mar 24 12:52:05 1997
Received: from crystal.WonderWorks.COM (crystal.WonderWorks.com [192.203.206.1])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id MAA16237
	for <xemacs-beta@xemacs.org>; Mon, 24 Mar 1997 12:52:01 -0600 (CST)
Received: by crystal.WonderWorks.COM 
	id QQcihf15674; Mon, 24 Mar 1997 13:52:02 -0500 (EST)
Date: Mon, 24 Mar 1997 13:52:02 -0500 (EST)
Message-Id: <QQcihf15674.199703241852@crystal.WonderWorks.COM>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Kyle Jones <kyle_jones@wonderworks.com>
To: xemacs-beta@xemacs.org
Subject: Re: Customize faces slow (known problem?) (b101)
In-Reply-To: <rj4te1qh99.fsf@zuse.dina.kvl.dk>
References: <by3etq4vk9.fsf@math.ethz.ch>
	<QQchuk13982.199703210730@crystal.WonderWorks.COM>
	<rj4te1qh99.fsf@zuse.dina.kvl.dk>
X-Mailer: VM 6.23 under 19.15 XEmacs Lucid (beta103)
X-Face: /cA45WHG7jWq>(O3&Z57Y<"WsX5ddc,4c#w0F*zrV#=M
        0@~@,s;b,aMtR5Sqs"+nU.z^CSFQ9t`z2>W,S,]:[+2^
        Nbf6v4g>!&,7R4Ot4Wg{&tm=WX7P["9%a)_da48-^tGy
        ,qz]Z,Zz\{E.,]'EO+F)@$KtF&V

Per Abrahamsen writes:
 > Kyle Jones <kyle_jones@wonderworks.com> writes:
 > 
 > > I profiled the startup of customize-face and the top three Lisp
 > > functions were
 > > 
 > > widget-get                                               556   17.696
 > > add-text-properties                                      440   14.004
 > > widget-default-create                                    405   12.890
 > > 
 > > accounting for 43% of the time.
 > > 
 > > start-profiling, stop-profiling and pretty-print-profiling-info
 > > are the functions to use if you want to do it yourself.
 > 
 > Thanks.  I get very different values, `widget-default-create' and
 > `replace-match' are always in top, like this:
 > 
 > Function                                               Count        %
 > ---------------------------------------------------------------------
 > widget-default-create                                    567   36.938
 > replace-match                                            491   31.987
 > widget-get                                               126    8.208
 > widget-default-delete                                     99    6.450
 > add-text-properties                                       76    4.951
 > match-string                                              49    3.192
 > 
 > Strange.  But at least, it is clear what should be optimized here!

I don't use faces much and I don't use GNUS, so I likely have far
fewer faces in my environment and much less use of color.  This
might change where the code spends time.  You'd be better off
optimizing for heavier face usage than mine; Ben wanted to create
a curmudgeon-mode for Emacs users like me.

