[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use of wl-summary-auto-sync-marks



At Wed, 08 Jun 2011 07:19:36 +0200,
David Maus wrote:
> 
> Hi Erik,
> 
> At Tue, 10 May 2011 23:05:30 -0700,
> Erik Hetzner wrote:
> >
> > Does anybody have any thoughts? I am not too certain about what
> > syncing marks does, or rather when it is necessary, so comments are
> > appreciated.

Hi David,

Thanks for the response.
 
> I'm trying to figure out what effect disabling auto-sync-marks would
> or might have but cannot reproduce the slowness you are
> experiencing. So, a couple of questions:
> 
> 1/ What exactly is the folder definition?

e.g. /body:production&from:hetzner/%archive@imap

> 2/ Which types of folders are involved (IMAP, I guess?)

Yes, IMAP folders (that is, filter folders on IMAP).

> 3/ How many messages are in the folder w/o the filter condition?

132712 - this is a virtual dovecot folder containing all messages.

> 4/ If its IMAP: What IMAP server is at the other end?

dovecot 2.0.13

> It might also be helpful to see which function takes most of the
> time. If you can reproduce the slowness you might use the Emacs lisp
> profiler to gather this information
> 
> M-x elp-instrument-package RET wl RET
> M-x elp-instrument-package RET elmo RET
> 
> If the operation is finished you can get the profiling results with
> 
> M-x elp-results RET

Here are some profile results. Notice the 17 seconds spent in
wl-summary-sync-marks.

With wl-summary-auto-sync-marks t:

wl-summary-sync                                     1           35.426965     35.426965
wl-summary-sync-update                              1           34.858901     34.858901
elmo-folder-set-flag                                8           24.989765     3.123720625
elmo-imap4-search-internal                          3           23.159446000  7.7198153333
elmo-folder-synchronize                             2           21.409179     10.7045895
elmo-imap4-send-command-wait                        26          17.674425999  0.6797856153
elmo-imap4-accept-ok                                26          17.203703     0.6616808846
elmo-imap4-read-response                            26          17.203434999  0.6616705769
wl-summary-sync-marks                               1           17.02447      17.02447
wl-summary-set-persistent-mark                      4           12.495111999  3.1237779999
elmo-object-save                                    235         12.321106     0.0524302382
elmo-global-flag-set                                143         12.30866      0.0860745454
elmo-folder-commit                                  78          12.287013999  0.1575258205
elmo-folder-list-messages                           129         11.797018999  0.0914497596
elmo-folder-list-messages-internal                  1           11.794885     11.794885
elmo-folder-search                                  1           11.794834     11.794834
elmo-imap4-search-internal-primitive                2           11.365371     5.6826855
elmo-folder-list-flagged                            78          9.028714      0.1157527435
elmo-imap4-list                                     20          4.4287609999  0.2214380499
elmo-folder-list-flagged-internal                   19          3.9146        0.2060315789
elmo-imap4-folder-list-flagged                      19          3.9131419999  0.2059548421
elmo-generic-folder-commit                          78          3.0994330000  0.0397363205
elmo-msgdb-killed-list-save                         78          3.097342      0.0397095128
elmo-folder-confirm-appends                         1           2.167217      2.167217
elmo-folder-msgdb-create                            1           1.939409      1.939409
...

Without:

elmo-imap4-search-internal                          3           25.680135999  8.5600453333
elmo-folder-synchronize                             2           22.998759     11.4993795
wl-summary-sync                                     1           20.117598     20.117598
wl-summary-sync-update                              1           19.181399     19.181399
elmo-imap4-send-command-wait                        7           14.435989     2.0622841428
elmo-imap4-accept-ok                                7           14.434955     2.0621364285
elmo-imap4-read-response                            7           14.434886     2.0621265714
elmo-folder-list-messages                           6           13.049218000  2.1748696666
elmo-folder-list-messages-internal                  1           13.049086     13.049086
elmo-folder-search                                  1           13.049036     13.049036
elmo-imap4-search-internal-primitive                2           12.631629     6.3158145
elmo-folder-confirm-appends                         1           2.741763      2.741763
elmo-folder-msgdb-create                            1           1.79588       1.79588
...

best, Erik
Sent from my free software system <http://fsf.org/>.