From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Q on performance with 10000 faces Date: Tue, 23 May 2006 18:48:11 -0500 (CDT) Message-ID: <200605232348.k4NNmBdf017504@jane.dms.auburn.edu> References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1148428192 21103 80.91.229.2 (23 May 2006 23:49:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 May 2006 23:49:52 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 24 01:49:47 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 1FigdC-0006ul-60 for ged-emacs-devel@m.gmane.org; Wed, 24 May 2006 01:49:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FigdB-0001Ab-Oi for ged-emacs-devel@m.gmane.org; Tue, 23 May 2006 19:49:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Figd1-00019u-A4 for emacs-devel@gnu.org; Tue, 23 May 2006 19:49:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Figd0-00018p-7x for emacs-devel@gnu.org; Tue, 23 May 2006 19:49:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Figd0-00018h-3Q for emacs-devel@gnu.org; Tue, 23 May 2006 19:49:30 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FighJ-00059I-P7 for emacs-devel@gnu.org; Tue, 23 May 2006 19:53:57 -0400 Original-Received: from jane.dms.auburn.edu (jane.dms.auburn.edu [131.204.53.201]) by manatee.dms.auburn.edu (8.13.6/8.13.6) with ESMTP id k4NNnTZl007469; Tue, 23 May 2006 18:49:29 -0500 (CDT) Original-Received: from jane.dms.auburn.edu (localhost [127.0.0.1]) by jane.dms.auburn.edu (8.13.4+Sun/8.13.4) with ESMTP id k4NNmCDw017507; Tue, 23 May 2006 18:48:12 -0500 (CDT) Original-Received: (from teirllm@localhost) by jane.dms.auburn.edu (8.13.4+Sun/8.13.3/Submit) id k4NNmBdf017504; Tue, 23 May 2006 18:48:11 -0500 (CDT) X-Authentication-Warning: jane.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: drew.adams@oracle.com 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:55163 Archived-At: Drew Adama wrote: Most likely this can't be seen on an elisp profile. To get a C profile, add "-pg -DPROFILING=1" to your CFLAGS. Sorry, I don't know how to do that. I'm not using C (or building Emacs). You could try to see whether anything in the code you load in your .emacs calls one of the text property search functions in a loop (10000 times in your case). For instance \(next\|previous\)-\(char-\)?property-change. If this happens from a hook or timer, it definitely could give you trouble, You could grep the code loaded by your .emacs for these and related text property search functions. I can definitely see why things might get slow for you if you would make parts of your buffer invisible (would probably make line-move slow) or when you would try to copy a large part of your buffer by yanking (remove-yank-excluded-properties would be doing a lot of work). Sincerely, Luc.