<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH] display search progress with $search_inc



On 2006-11-13 15:27:02 +0000, Rocco Rutte wrote:
> I don't think time-based is a good alternative to $search_inc. The 
> reason is quite simple: when you have 52k messages then mutt needs to 
> query the time 52k times. And if the search is trivial so that 
> search/limit is done in <1 second, it will slow things down drastically.

I've tried here under Mac OS X, replacing the mutt_message by a call
to times in your patch, with $search_inc=1, and a limit on my 52k
mailbox takes a fraction of second. So, this is very fast, at least
*much* faster than calling mutt_message (and I haven't even tried
through a SSH connection). This is even faster than $search_inc=10
with mutt_message.

FYI, I had a similar problem a few months ago in one of my Perl
scripts that has a progress feature: through a SSH connection, it
was completely freezing the connection. Displaying the progress
every 0.25 second (at least) improved the behavior very much,
without any slowdown in local.

Note: of course, this is not the real time, but in practice, there
should not be a big difference for an application like Mutt.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)