From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Display performance degradation Date: Sat, 02 Jan 2010 13:21:59 +0200 Message-ID: <83oclceoq0.fsf@gnu.org> References: <4B29E046.8050107@swipnet.se> <838wd1749d.fsf@gnu.org> <4B2BB21A.8050709@swipnet.se> <83r5qs569a.fsf@gnu.org> <4B3F2868.5030404@swipnet.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1262431475 27742 80.91.229.12 (2 Jan 2010 11:24:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Jan 2010 11:24:35 +0000 (UTC) Cc: mituharu@math.s.chiba-u.ac.jp, emacs-devel@gnu.org To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 02 12:24:27 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NR25l-0008OG-TQ for ged-emacs-devel@m.gmane.org; Sat, 02 Jan 2010 12:24:22 +0100 Original-Received: from localhost ([127.0.0.1]:38744 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NR25m-0002Pg-8y for ged-emacs-devel@m.gmane.org; Sat, 02 Jan 2010 06:24:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NR25f-0002OI-V4 for emacs-devel@gnu.org; Sat, 02 Jan 2010 06:24:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NR25Z-0002Ni-Sy for emacs-devel@gnu.org; Sat, 02 Jan 2010 06:24:14 -0500 Original-Received: from [199.232.76.173] (port=49455 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NR25Z-0002Nf-N4 for emacs-devel@gnu.org; Sat, 02 Jan 2010 06:24:09 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:47266) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NR25Z-00069P-93 for emacs-devel@gnu.org; Sat, 02 Jan 2010 06:24:09 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0KVM00600A7V9600@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Sat, 02 Jan 2010 13:24:02 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.222.44]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KVM006EYAC19800@a-mtaout21.012.net.il>; Sat, 02 Jan 2010 13:24:02 +0200 (IST) In-reply-to: <4B3F2868.5030404@swipnet.se> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:119270 Archived-At: > Date: Sat, 02 Jan 2010 12:05:12 +0100 > From: Jan_Dj=E4rv > Cc: mituharu@math.s.chiba-u.ac.jp, emacs-devel@gnu.org >=20 > It seems to me that lookup_named_face always merges the face with > the default face. Well, it must, mustn't it? A face specification does not need to be complete; it is expected that the unspecified attributes are inherite= d =66rom the default face. The initial issue was why lookup_named_face is at all called, if no faces were encountered while scanning buffer text to be displayed. But I think I know the answer: Emacs needs a fully specified face to look it up in the face cache. Technically, this is because the cache lookup is by face attributes, but there's probably a deeper reason for this design. Anyway, is the call to lookup_named_face expensive, for all the calls but the first one which use the same face symbol? If it is cheap, then perhaps this is a non-issue.