From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.devel Subject: Re: simple patch for `etags.el' Date: Tue, 21 Sep 2004 22:04:06 -0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <200409212200.22757.pogonyshev@gmx.net> References: <200409201650.26315.pogonyshev@gmx.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1095793264 22191 80.91.229.6 (21 Sep 2004 19:01:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Sep 2004 19:01:04 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 21 21:00:51 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C9psg-000413-00 for ; Tue, 21 Sep 2004 21:00:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9pyd-0005cG-4c for ged-emacs-devel@m.gmane.org; Tue, 21 Sep 2004 15:06:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9pyW-0005by-0p for emacs-devel@gnu.org; Tue, 21 Sep 2004 15:06:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9pyU-0005a0-D5 for emacs-devel@gnu.org; Tue, 21 Sep 2004 15:06:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9pyU-0005Zx-AS for emacs-devel@gnu.org; Tue, 21 Sep 2004 15:06:50 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1C9psC-0001KX-8v for emacs-devel@gnu.org; Tue, 21 Sep 2004 15:00:20 -0400 Original-Received: (qmail 25129 invoked by uid 65534); 21 Sep 2004 19:00:17 -0000 Original-Received: from unknown (EHLO localhost.localdomain) (195.50.12.118) by mail.gmx.net (mp020) with SMTP; 21 Sep 2004 21:00:17 +0200 X-Authenticated: #16844820 Original-To: rms@gnu.org User-Agent: KMail/1.4.3 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:27386 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27386 Richard Stallman wrote: > Even better, how about not updating the percentage more than once > per second? This turned out not to be better. Overhead caused by time fetching and comparisons is not worth the gain. When percentage is printed whenever it changes, `message' is called at most 101 times and that is cheap. Note that 101 is a constant, while the number of constraint evaluations is practically not limited. So I suggest not bothering with time. It is faster, gives much simpler code and, finally, once per second is still to=20 rarely, at least to my tastes. Can you give a suggestion of where to place the new functions? Then I can produce a complete patch. Paul