<<< Date Index >>>     <<< Thread Index >>>

100% cpu getting to end of message



Hello,

I get some e-mails, text only, that can get as big as 15 MB.

Usually, I check the beginning and end only, but getting to the end of
the message (I just press the <END> key) consumes a lot of CPU for
several seconds.

Is there anything I can do to alleviate the problem? According to gprof,
the likely culprit is pager.c:format_line(), but it's too complicated
for me to just start tinkering.

$ gprof -p ...
Flat profile:

Each sample counts as 0.01 seconds.
  %   cumulative   self              self     total
 time   seconds   seconds    calls   s/call   s/call  name
 26.38      0.58     0.58   539105     0.00     0.00  format_line
 10.09      0.80     0.22      309     0.00     0.00  imap_read_literal
  5.96      0.93     0.13   536282     0.00     0.00  display_line
  5.96      1.06     0.13    37246     0.00     0.00  imap_cmd_step
  5.50      1.18     0.12 26029385     0.00     0.00 mutt_socket_readchar
  5.50      1.30     0.12       73     0.00     0.00  mutt_decode_xbit
  5.05      1.41     0.11  1071157     0.00     0.00  fill_buffer
  2.75      1.47     0.06       22     0.00     0.00  imap_make_msg_set
  2.75      1.53     0.06                             compare_order
  2.29      1.58     0.05        2     0.03     0.05  mutt_sort_threads
  1.83      1.62     0.04                             compare_subject
  1.38      1.65     0.03        6     0.01     0.01  mutt_pattern_func
  0.92      1.67     0.02  1275903     0.00     0.00  restore_int

The call graph is available in:
 http://ftp.gil.di.uminho.pt/pub/users/strange/mutt_call_graph.txt

Regards,
Luciano Rocha

-- 
lfr
0/0

Attachment: pgpkABGpWymEb.pgp
Description: PGP signature