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 tested with the following script: #!/bin/sh # Argument: number of ~l patterns (default: 100). n=${1:-100} { printf "From a@b.invalid Sun Dec 25 00:00:00 2016\nTo:" printf " u%s@b.invalid,\n" `seq 2000` } > listpatt.mbox { printf "lists ^l%s@c.invalid\n" `seq 100` printf "color index cyan black ~l~s%s\n" `seq $n` printf "push <exit>\n" } > listpatt.muttrc time mutt -R -F listpatt.muttrc -f listpatt.mbox rm listpatt.mbox listpatt.muttrc -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)