From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: customize-apropos-options takes forever... Date: Thu, 6 Jul 2006 10:06:13 -0700 Message-ID: References: <87veqavg3j.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1152205631 17614 80.91.229.2 (6 Jul 2006 17:07:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Jul 2006 17:07:11 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 06 19:07:05 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 1FyXJD-0005sW-1q for ged-emacs-devel@m.gmane.org; Thu, 06 Jul 2006 19:06:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FyXJC-0005ei-FZ for ged-emacs-devel@m.gmane.org; Thu, 06 Jul 2006 13:06:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FyXIz-0005eU-P1 for emacs-devel@gnu.org; Thu, 06 Jul 2006 13:06:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FyXIx-0005eG-Ie for emacs-devel@gnu.org; Thu, 06 Jul 2006 13:06:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FyXIx-0005eD-GS for emacs-devel@gnu.org; Thu, 06 Jul 2006 13:06:19 -0400 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1FyXJB-0001ZK-KI for emacs-devel@gnu.org; Thu, 06 Jul 2006 13:06:33 -0400 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id k66H6FOr012946 for ; Thu, 6 Jul 2006 11:06:15 -0600 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k66H6BSq028457 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Thu, 6 Jul 2006 11:06:14 -0600 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <87veqavg3j.fsf@stupidchicken.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE 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:56647 Archived-At: > 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. Thanks Chong. 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 was comparing Emacs 20, not Emacs 21. Perhaps the same difference in performance exists between 20 and 21. Believe me, there is a marked difference between 20 and 22. Again, I know that Customize in 22 is a lot fancier than in 20, and it does more behind the scene, so degraded performance is not a full measure of usefulness - Customize in 22 is better than in 20, and I don't want to go backward here. 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. No, I was not paying attention to the echo area. I was simply waiting for the buffer to appear (!) and for my keyboard and mouse to come back to me from Never-Never Land. In the reality, of course, it's silly to do M-x customize-apropos with no regexp in the first place. Agreed, but people do silly things sometimes. Searching among all options is a reasonable thing to want to do, but I agree that there are other ways to do that. apropos-variable is good for getting descriptions of all user options (but not faces) - but it doesn't show you the values. And edit-options is quick and useful for getting both descriptions and values, but it is deprecated.