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: Q on performance with 10000 faces Date: Mon, 22 May 2006 06:41:46 +0300 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1148269330 24544 80.91.229.2 (22 May 2006 03:42:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 May 2006 03:42:10 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 22 05:42:07 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fi1J0-0002oL-Vn for ged-emacs-devel@m.gmane.org; Mon, 22 May 2006 05:42:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fi1J0-000426-5K for ged-emacs-devel@m.gmane.org; Sun, 21 May 2006 23:42:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fi1Io-00041s-3H for emacs-devel@gnu.org; Sun, 21 May 2006 23:41:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fi1Il-00041g-Ku for emacs-devel@gnu.org; Sun, 21 May 2006 23:41:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fi1Il-00041d-FZ for emacs-devel@gnu.org; Sun, 21 May 2006 23:41:51 -0400 Original-Received: from [192.114.186.17] (helo=gandalf.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fi1Mf-0003zX-I8 for emacs-devel@gnu.org; Sun, 21 May 2006 23:45:53 -0400 Original-Received: from nitzan.inter.net.il (nitzan.inter.net.il [192.114.186.20]) by gandalf.inter.net.il (MOS 3.7.1-GA) with ESMTP id ITU33600; Mon, 22 May 2006 06:41:47 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-37-250.inter.net.il [80.230.37.250]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id DKR34749 (AUTH halo1); Mon, 22 May 2006 06:41:45 +0300 (IDT) Original-To: "Drew Adams" In-reply-to: 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:55003 Archived-At: > From: "Drew Adams" > Date: Sun, 21 May 2006 17:02:40 -0700 > > Does this mean that Emacs cannot reasonably be expected to display 10000 > face text-properties? AFAIK, yes. Doing what you did (a) disables all possible display optimizations that the redisplay engine has up its sleeve to speed up the common cases, and (b) forces Emacs to traverse the 10000 text properties for each character it is about to display. > If so, any advice on workarounds or other approaches? I don't know of any, except ``don't do that'', but perhaps Kim or Stefan will. > Is the slowdown perhaps because of some kind of automatic updating or > refreshing, which I could turn off somehow (I hope)? It's because even cursor motion, that usually takes a fast shortcut through the redisplay code, requires to search all the text properties in your situation.