On Wed, Dec 03, 2008 at 03:38:07PM +0800, David Schulz wrote:

> maildir_header_cache_verify means : Check for Maildir unaware programs 
> other than Mutt-ng having modified maildir files when the header cache 
> is in use. This incurs one stat(2) per message every time the folder is 
> opened.
> 
> Can anyone tell me why this is? Does this have to do with our Filesystem 
> and that there are a lot of files in a directory, or is the reason to be 
> searched inside mutt? Are there maybe some other Ideas i can use to 
> improve my mutt performance?

  i do not know this for certain because i have not looked at any code
  but having written something that trounces through maildirs and has
  to

A) operate on a shit ton of files
B) run fast

  i try to opportunistically use file metadata contained in the message
  filename, and if it seems sketchy or incomplete, i fall back to stat(1).

  eg, mutt maybe is saying to you "if you turn on header verify, i will
  assume that the filenames might not be right as far as file size and
  date and read and status like that, so i will stat the file to get
  the actual filesystem info rather than just gleaning similar info
  from the actual filename of each message

  might totally be worthwhile to check mutt www or just peek in the code,
  maybe there's a nice comment or maybe it's intuitive.

-- 

  jared

Reply via email to