[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: simple patch for `etags.el'
From: |
Kim F. Storm |
Subject: |
Re: simple patch for `etags.el' |
Date: |
Wed, 22 Sep 2004 10:08:50 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) |
Paul Pogonyshev <address@hidden> 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 <address@hidden> http://www.cua.dk
Re: simple patch for `etags.el', Richard Stallman, 2004/09/21
- Re: simple patch for `etags.el', Paul Pogonyshev, 2004/09/21
- Re: simple patch for `etags.el',
Kim F. Storm <=
- Re: simple patch for `etags.el', Paul Pogonyshev, 2004/09/22
- Re: simple patch for `etags.el', Kim F. Storm, 2004/09/22
- Re: simple patch for `etags.el', David Kastrup, 2004/09/22
- Re: simple patch for `etags.el', Paul Pogonyshev, 2004/09/22
- Re: simple patch for `etags.el', Richard Stallman, 2004/09/23