Re: efficiency issue in index with messages with big Cc

2016-12-31 Thread Vincent Lefevre
On 2016-12-28 16:23:16 -0800, Kevin J. McCarthy wrote: > On Wed, Dec 28, 2016 at 04:03:41PM -0800, Kevin J. McCarthy wrote: > > I'm attaching a "general idea" patch. This is <10 minutes of work, > > absolutely incomplete, without comments, etc etc > > Whoops, I forgot I initially set the cache->l

Re: efficiency issue in index with messages with big Cc

2016-12-28 Thread Kevin J. McCarthy
On Wed, Dec 28, 2016 at 04:03:41PM -0800, Kevin J. McCarthy wrote: > I'm attaching a "general idea" patch. This is <10 minutes of work, > absolutely incomplete, without comments, etc etc Whoops, I forgot I initially set the cache->list to be a single bit. I've changed it to an int for now in the

Re: efficiency issue in index with messages with big Cc

2016-12-28 Thread Kevin J. McCarthy
On Sun, Dec 25, 2016 at 10:14:56PM +0100, Vincent Lefevre wrote: > On 2016-12-08 16:21:47 -0800, Kevin J. McCarthy wrote: > > On Thu, Dec 08, 2016 at 05:30:35PM +0100, Vincent Lefevre wrote: > > > The hangs is due to this big Cc and the "subscribe" / "lists" commands > > > in my muttrc. > > > > Hi

Re: efficiency issue in index with messages with big Cc

2016-12-25 Thread Vincent Lefevre
On 2016-12-25 22:14:56 +0100, Vincent Lefevre wrote: > The problem is due to several "color index ..." with ~l in the regexp. > I've noticed that if I leave only one, then it is much faster. So, it > seems that Mutt doesn't remember the ~l matching. The lack of efficiency in this case can be teste

Re: efficiency issue in index with messages with big Cc

2016-12-25 Thread Vincent Lefevre
On 2016-12-08 16:21:47 -0800, Kevin J. McCarthy wrote: > On Thu, Dec 08, 2016 at 05:30:35PM +0100, Vincent Lefevre wrote: > > The hangs is due to this big Cc and the "subscribe" / "lists" commands > > in my muttrc. > > Hi Vincent, > > I'm assuming your $index_format contains %L, and that's the pr

Re: efficiency issue in index with messages with big Cc

2016-12-08 Thread Kevin J. McCarthy
On Thu, Dec 08, 2016 at 05:30:35PM +0100, Vincent Lefevre wrote: > The hangs is due to this big Cc and the "subscribe" / "lists" commands > in my muttrc. Hi Vincent, I'm assuming your $index_format contains %L, and that's the problem. If you change %L to %F does the problem go away? Looking at

efficiency issue in index with messages with big Cc

2016-12-08 Thread Vincent Lefevre
In my current maildir mailbox, I have some messages[*] with big Cc (several hundreds of addresses). When I want to move to the page of the index where these big messages appear, Mutt hangs for a few seconds (taking CPU time) before displaying this page. The strace contains something like: [...] 16