#3696: mutt 1.5.23 extremely slow in index
---------------------+----------------------
 Reporter:  glebius  |      Owner:  mutt-dev
     Type:  defect   |     Status:  new
 Priority:  major    |  Milestone:
Component:  mutt     |    Version:  1.5.23
 Keywords:  buffy    |
---------------------+----------------------
 Today mutt eventually started to be extremely slow when browsing
 mailboxes. Any operation like open an email, or exit email, or scroll one
 message up, or scroll one message down take several seconds to complete.

 During these lags, according to top(1), the mutt spends most of its time
 in user mode, consuming all available CPU.

 Attaching with gdb I see that most of the traces are in the "buffy"
 module, and the module scans all emails in all my mailboxes. Typical trace
 is:

 mutt_index_menu -> mutt_buffy_check -> buffy_mbox_update ->
 mx_open_mailbox -> mbox_open_mailbox -> mbox_parse_mailbox ->
 mutt_read_rfc822_header -> ...

 So, it looks like ALL my emails are scanned whenever I move a cursor one
 message up or down, or open a single message.

 To check that, I have put 'return 0;' right into the beginning of
 buffy.c:mutt_buffy_check(). Recompiled version works without any glitches
 (of course buff functionality is not available). So, smth is wrong with
 buffy.

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3696>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to