From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: customize-apropos-options takes forever... Date: Thu, 06 Jul 2006 12:43:44 -0400 Message-ID: <87veqavg3j.fsf@stupidchicken.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1152204238 12369 80.91.229.2 (6 Jul 2006 16:43:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Jul 2006 16:43:58 +0000 (UTC) Cc: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 06 18:43:52 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 1FyWwu-0000hn-66 for ged-emacs-devel@m.gmane.org; Thu, 06 Jul 2006 18:43:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FyWwt-0002Yb-MT for ged-emacs-devel@m.gmane.org; Thu, 06 Jul 2006 12:43:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FyWwh-0002XW-1y for emacs-devel@gnu.org; Thu, 06 Jul 2006 12:43:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FyWwf-0002VL-Fx for emacs-devel@gnu.org; Thu, 06 Jul 2006 12:43:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FyWwf-0002V2-9Z for emacs-devel@gnu.org; Thu, 06 Jul 2006 12:43:17 -0400 Original-Received: from [18.19.1.138] (helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FyWwt-0007Oq-Ad for emacs-devel@gnu.org; Thu, 06 Jul 2006 12:43:31 -0400 Original-Received: by cyd (Postfix, from userid 1000) id C105B4E2AC; Thu, 6 Jul 2006 12:43:44 -0400 (EDT) Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Wed, 5 Jul 2006 08:14:58 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:56646 Archived-At: "Drew Adams" writes: > M-x customize-apropos-options RET RET > > On Emacs 22, this takes quite a while. On Emacs 20, it finishes very > quickly. > > Emacs 22 has a lot more options, of course, and more faces and buttons and > such, but it still feels like things are less efficient now. In emacs -Q, > there are 4698 lines in the buffer in Emacs 22; in Emacs 20, there are 2333 > lines (about half). But Emacs 22 takes *far* longer than twice as long. I took some time to look into this. For M-x customize-apropos RET RET: Emacs 22 takes 140.04 seconds to make 1904 entries, i.e. 13.6 / second. Emacs 21 takes 76.38 seconds to make 1048 entries, i.e. 13.7 / second. Conclusion: >>>> This Is Not A Bug <<<< I think the reason you thought Emacs 22 is slower is that the echo area tells you how much % of the job is done. Obviously, 1% of 1904 entries takes longer to do than 1% of 1048 entries, giving the illusion that Emacs 22 is progressing more slowly. In the reality, of course, it's silly to do M-x customize-apropos with no regexp in the first place.