Gnus development mailing list
 help / color / mirror / Atom feed
* why does message-generate-headers take so long?
@ 2006-08-22 22:41 Ted Stern
  2006-08-23  4:24 ` Andreas Seltenreich
  2006-08-23  8:34 ` Elias Oltmanns
  0 siblings, 2 replies; 7+ messages in thread
From: Ted Stern @ 2006-08-22 22:41 UTC (permalink / raw)


Hi all,

Sending a message from CVS Emacs + CVS Gnus on Red Hat Enterprise
Linux Workstation 4 (x86_64) takes quite a bit of time, so I profiled
all message-* functions to see where the time hog was.  I'm inserting
just the top 9 results:

,----[ elp-results ]
| Function Name                                   Call Count  Elapsed Time  Average Time
| ==============================================  ==========  ============  ============
| message-send-and-exit                           1           20.467676     20.467676
| message-send                                    1           20.467588     20.467588
| message-send-via-mail                           1           20.24165      20.24165
| message-send-mail                               1           20.241641     20.241641
| message-generate-headers                        2           20.131608     10.065804
| message-send-mail-with-sendmail                 1           0.1094629999  0.1094629999
| message-tab                                     1           0.076816      0.076816
| message-expand-name                             1           0.076688      0.076688
| message-mail                                    1           0.069009      0.069009
`----

Clearly, the most time is being spent in message-generate-headers, and
the other long times are accumulated with it.  There are a lot of
(while (re-search-forward)) loops, but this message was just a few
lines long!

Can anyone think of a reason why that routine would take so long?  Why
is it being called twice?  Is there any way to speed it up?

Ted
-- 
 dodecatheon at gmail dot com
 Frango ut patefaciam -- I break so that I may reveal




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-08-23 15:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-22 22:41 why does message-generate-headers take so long? Ted Stern
2006-08-23  4:24 ` Andreas Seltenreich
2006-08-23  8:43   ` Simon Josefsson
2006-08-23 13:47     ` Wes Hardaker
2006-08-23 15:15       ` Simon Josefsson
2006-08-23 15:34         ` gdt
2006-08-23  8:34 ` Elias Oltmanns

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).