From: Rocco Rutte Date: Tue, 14 Nov 2006 18:39:54 +0000 (+0000) Subject: Add performance tuning section to manual. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fadf7c4458a8a3b10f991dd36713539ef331bf5d;p=neomutt Add performance tuning section to manual. --- diff --git a/doc/Makefile.am b/doc/Makefile.am index f97f83e33..efefd32b3 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -28,7 +28,7 @@ EXTRA_DIST = dotlock.man \ HTML_DOCFILES = manual.html index.html intro.html gettingstarted.html \ configuration.html mimesupport.html advancedusage.html \ - reference.html miscellany.html + tuning.html reference.html miscellany.html BUILT_DISTFILES = stamp-doc-xml stamp-doc-chunked manual.txt $(HTML_DOCFILES) diff --git a/doc/manual.xml.head b/doc/manual.xml.head index 51645eed1..b2ee8886d 100644 --- a/doc/manual.xml.head +++ b/doc/manual.xml.head @@ -4662,7 +4662,7 @@ Details on how to enable either of these techniques are given in the following subsections. - + Header caching @@ -4712,7 +4712,7 @@ named md5, depending on your operating system. - + Body caching @@ -5649,6 +5649,75 @@ muttrc. + +Performance tuning + + +Reading and writing mailboxes + + +Mutt's performance when reading mailboxes can be improved in two ways: + + + + + +For remote folders (IMAP and POP) as well as folders using +one-file-per message storage (Maildir and MH), mutt's +performance can be greatly improved using +header caching. +Using a single database per folder may further increase +performance. + + +Mutt provides the $read_inc +and $write_inc +variables to specify at which rate to update progress +counters. If these values are too low, mutt may spend more +time on updating the progress counter than it spends on +actually reading/writing folders. + + +For example, when opening a maildir folder with a few +thousand messages, the default value for +$read_inc +may be too low. It can be tuned on on a folder-basis using +folder-hooks: + + +# use very high $read_inc to speed up reading hcache'd maildirs +folder-hook . 'set read_inc=1000' +# use lower value for reading slower remote IMAP folders +folder-hook ^imap 'set read_inc=100' +# use even lower value for reading even slower remote POP folders +folder-hook ^pop 'set read_inc=1' + + + + + + + + +Reading messages from remote folders + + +Reading messages from remote folders such as IMAP an POP can be +slow especially for large mailboxes since mutt only caches a very +limited number of recently viewed messages (usually 10) per +session (so that it will be gone for the next session.) + + + +To improve performance and permanently cache whole messages, +please refer to mutt's so-called +body caching for details. + + + + + + Reference