unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: simple patch for `etags.el'
Date: Wed, 22 Sep 2004 10:08:50 +0200	[thread overview]
Message-ID: <m3wtymlo8d.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <200409212200.22757.pogonyshev@gmx.net> (Paul Pogonyshev's message of "Tue, 21 Sep 2004 22:04:06 -0200")

Paul Pogonyshev <pogonyshev@gmx.net> writes:

> 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.

You could do the time check only when you are about to call message,
ie. a max of 101 times.

>
> So I suggest not bothering with time.  It is faster, gives
> much simpler code and, finally, once per second is still to 
> rarely, at least to my tastes.

Probably -- but a default period of 0.2 seconds would be ok.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

  reply	other threads:[~2004-09-22  8:08 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-20 18:50 simple patch for `etags.el' Paul Pogonyshev
2004-09-21  1:25 ` Paul Pogonyshev
     [not found]   ` <200409210006.24183.pogonyshev@gmx.net>
2004-09-21  2:08     ` Paul Pogonyshev
2004-09-22  7:11   ` Richard Stallman
2004-09-23  0:30     ` Paul Pogonyshev
2004-09-23 16:45       ` Richard Stallman
2004-09-24  3:21         ` Paul Pogonyshev
2004-09-21 18:31 ` Richard Stallman
2004-09-22  0:04   ` Paul Pogonyshev
2004-09-22  8:08     ` Kim F. Storm [this message]
2004-09-22 14:04       ` Paul Pogonyshev
2004-09-22 11:47         ` Kim F. Storm
2004-09-22 12:09           ` David Kastrup
2004-09-22 20:22           ` Paul Pogonyshev
2004-09-23  9:30             ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3wtymlo8d.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).