Gnus development mailing list
 help / color / mirror / Atom feed
* Slowness when 'g'etting news.
@ 1999-12-28 21:32 David Hedbor
  1999-12-28 23:54 ` Simon Josefsson
  0 siblings, 1 reply; 6+ messages in thread
From: David Hedbor @ 1999-12-28 21:32 UTC (permalink / raw)


A while ago it started taking forever to run
gnus-group-get-new-news. Basically it does the newsserver name /
garbage collecting for a long while. When I use a prefix (4 for
example, which excludes most groups on the "main" newsserver.

What I wonder is how I can "gauge" this to see what it is that takes
so long time. Any hints? It's starting to annoy me greatly. :-) I have
gnus-read-active-file set to 'some and are subscribed to rather few
groups (say 10-15 or so).

-- 
[ Below is a random fortune, which is unrelated to the above message. ]
Q:	Why did the lone ranger kill Tonto?
A:	He found out what "kimosabe" really means.




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

* Re: Slowness when 'g'etting news.
  1999-12-28 21:32 Slowness when 'g'etting news David Hedbor
@ 1999-12-28 23:54 ` Simon Josefsson
  1999-12-30 19:58   ` David Hedbor
  0 siblings, 1 reply; 6+ messages in thread
From: Simon Josefsson @ 1999-12-28 23:54 UTC (permalink / raw)
  Cc: ding

David Hedbor <david@hedbor.org> writes:

> What I wonder is how I can "gauge" this to see what it is that takes
> so long time. Any hints?

M-x elp-instrument-package RET gnus RET, fetch new mail, M-x
elp-results. It's quite useful.

('nn', 'mail', 'message' are other packages you'd might want to
instrument too.)



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

* Re: Slowness when 'g'etting news.
  1999-12-28 23:54 ` Simon Josefsson
@ 1999-12-30 19:58   ` David Hedbor
  2000-04-21 16:35     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: David Hedbor @ 1999-12-30 19:58 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 550 bytes --]

Simon Josefsson <jas@pdc.kth.se> writes:

> David Hedbor <david@hedbor.org> writes:
> 
> > What I wonder is how I can "gauge" this to see what it is that takes
> > so long time. Any hints?
> 
> M-x elp-instrument-package RET gnus RET, fetch new mail, M-x
> elp-results. It's quite useful.
> 
> ('nn', 'mail', 'message' are other packages you'd might want to
> instrument too.)

Ok, did this. Does this make any sense to you gnus/elisp gurus?

-- 
[ Below is a random fortune, which is unrelated to the above message. ]
A couch is as good as a chair.

[-- Attachment #2: profile info --]
[-- Type: text/plain, Size: 8835 bytes --]

Function Name                                           Call Count  Elapsed Time  Average Time
======================================================  ==========  ============  ============
gnus-active-to-gnus-format                              3           36.072252999  12.024084333
gnus-group-get-new-news                                 1           29.734059000  29.734059000
gnus-get-unread-articles                                1           29.256428999  29.256428999
gnus-read-active-file-2                                 1           26.781887000  26.781887000
gnus-agent-save-active                                  1           18.310324999  18.310324999
gnus-agent-save-active-1                                1           18.310258999  18.310258999
gnus-agent-write-active                                 1           17.712207999  17.712207999
gnus-write-active-file                                  1           7.8826230000  7.8826230000
gnus-point-at-eol                                       68273       3.4623220007  5.071...e-05
gnus-activate-group                                     73          2.1932380000  0.0300443561
gnus-topic-prepare-topic                                18          1.3953470000  0.0775192777
gnus-topic-parent-topic                                 572         0.6012430000  0.0010511241
gnus-group-list-groups                                  1           0.4629280000  0.4629280000
gnus-group-prepare-topics                               1           0.4597769999  0.4597769999
gnus-topic-hierarchical-parameters                      18          0.3125940000  0.0173663333
gnus-current-topics                                     18          0.2980090000  0.0165560555
gnus-retrieve-groups                                    1           0.1938709999  0.1938709999
gnus-agent-save-group-info                              19          0.1896999999  0.0099842105
gnus-request-scan                                       1           0.1183640000  0.1183640000
nnmail-get-new-mail                                     1           0.1160520000  0.1160520000
gnus-group-insert-group-line                            39          0.1102929999  0.0028280256
nnmail-cache-open                                       1           0.1004130000  0.1004130000
nnmail-activate                                         53          0.0788019999  0.0014868301
nnmail-group-pathname                                   61          0.0615610000  0.0010091967
gnus-make-directory                                     22          0.0533960000  0.0024270909
gnus-run-hooks                                          44          0.0501589999  0.0011399772
gnus-group-highlight-line                               39          0.0470050000  0.0012052564
gnus-add-text-properties                                75          0.0262410000  0.0003498800
gnus-topic-find-topology                                302         0.0245199999  8.119...e-05
gnus-topic-insert-topic-line                            18          0.0242339999  0.0013463333
gnus-xmas-add-text-properties                           75          0.0228410000  0.0003045466
gnus-put-text-property                                  96          0.0203629999  0.0002121145
gnus-xmas-put-text-property                             96          0.0161360000  0.0001680833
gnus-put-text-property-excluding-characters-with-faces  39          0.0158449999  0.0004062820
gnus-master-read-slave-newsrc                           1           0.0143180000  0.0143180000
gnus-topic-parameters                                   54          0.0125119999  0.0002317037
gnus-server-opened                                      75          0.0099839999  0.0001331199
gnus-check-backend-function                             119         0.0099329999  8.347...e-05
gnus-get-function                                       152         0.0095510000  6.283...e-05
gnus-find-method-for-group                              138         0.0090230000  6.538...e-05
gnus-parse-active                                       73          0.0072860000  9.980...e-05
gnus-server-get-method                                  212         0.0053569999  2.526...e-05
gnus-extent-start-open                                  57          0.0053090000  9.314...e-05
gnus-group-timestamp-delta                              39          0.0049600000  0.0001271794
message                                                 11          0.0048679999  0.0004425454
gnus-server-add-address                                 140         0.0048060000  3.432...e-05
gnus-server-extend-method                               145         0.0041770000  2.880...e-05
gnus-group-group-name                                   40          0.0041500000  0.0001037500
gnus-group-new-mail                                     39          0.0033880000  8.687...e-05
gnus-server-to-method                                   54          0.0033849999  6.268...e-05
gnus-agent-get-function                                 227         0.0032870000  1.448...e-05
gnus-xmas-extent-start-open                             57          0.0032640000  5.726...e-05
gnus-group-get-parameter                                39          0.0028080000  7.200...e-05
gnus-topic-find-groups                                  18          0.0027210000  0.0001511666
gnus-message                                            4           0.0027020000  0.0006755000
gnus-range-length                                       39          0.0026220000  6.723...e-05
gnus-check-server                                       2           0.0023909999  0.0011954999
gnus-topic-goto-next-group                              1           0.0021229999  0.0021229999
gnus-group-goto-group                                   1           0.0020700000  0.0020700000
gnuserv-kill-buffer-query-function                      21          0.0020390000  9.709...e-05
gnus-agent-lib-file                                     19          0.0018209999  9.584...e-05
gnus-open-server                                        2           0.0016859999  0.0008429999
gnuserv-kill-buffer-function                            21          0.0012090000  5.757...e-05
gnus-uncompress-range                                   39          0.0011710000  3.002...e-05
gnus-server-status                                      75          0.0011630000  1.550...e-05
gnus-group-prefixed-name                                4           0.0011479999  0.0002869999
gnus-group-parameter-value                              39          0.0009930000  2.546...e-05
gnus-topic-update-unreads                               36          0.0009909999  2.752...e-05
nnmail-new-mail-p                                       39          0.0009570000  2.453...e-05
gnuserv-buffer-p                                        21          0.0008989999  4.280...e-05
gnus-group-remove-excess-properties                     39          0.0005709999  1.464...e-05
gnus-point-at-bol                                       41          0.0004989999  1.217...e-05
gnus-server-equal                                       11          0.0004780000  4.345...e-05
gnuserv-buffer-clients                                  21          0.0003650000  1.738...e-05
gnus-agent-method-p                                     20          0.0003649999  1.824...e-05
gnus-update-read-articles                               4           0.0002919999  7.299...e-05
gnus-group-set-mode-line                                1           0.0002600000  0.0002600000
gnus-update-format-specifications                       1           0.0002150000  0.0002150000
gnus-methods-using                                      4           0.0002040000  5.100...e-05
gnus-make-hashtable                                     2           0.0001299999  6.499...e-05
gnus-mode-line-buffer-identification                    1           0.0001069999  0.0001069999
gnus-group-position-point                               1           0.0001030000  0.0001030000
nnmail-get-value                                        1           7.000...e-05  7.000...e-05
gnus-xmas-mode-line-buffer-identification               1           6.800...e-05  6.800...e-05
gnus-goto-colon                                         1           6.399...e-05  6.399...e-05
gnus-group-setup-buffer                                 1           5.699...e-05  5.699...e-05
gnus-group-default-level                                2           4.300...e-05  2.150...e-05
gnus-create-hash-size                                   2           3.799...e-05  1.899...e-05
gnus-undo-boundary                                      2           3.600...e-05  1.800...e-05
nnmail-cache-close                                      1           2.099...e-05  2.099...e-05
gnus-get-buffer-create                                  1           1.799...e-05  1.799...e-05

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

* Re: Slowness when 'g'etting news.
  1999-12-30 19:58   ` David Hedbor
@ 2000-04-21 16:35     ` Lars Magne Ingebrigtsen
  2000-04-21 16:40       ` Shenghuo ZHU
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2000-04-21 16:35 UTC (permalink / raw)


David Hedbor <david@hedbor.org> writes:

> Function Name                                           Call Count  Elapsed Time  Average Time
> ======================================================  ==========  ============  ============
> gnus-active-to-gnus-format                              3           36.072252999  12.024084333
> gnus-group-get-new-news                                 1           29.734059000  29.734059000

That's kinda odd, since gnus-group-get-new-news calls
gnus-active-to-gnus-format, so it should be impossible for this to
happen.  Might be some kinda recursitivity issue.

Anyway:

> gnus-agent-save-active                                  1           18.310324999  18.310324999

This looks way too slow.  18 seconds to save the active file?  Are you 
sure you've byte-compiled everything?

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



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

* Re: Slowness when 'g'etting news.
  2000-04-21 16:35     ` Lars Magne Ingebrigtsen
@ 2000-04-21 16:40       ` Shenghuo ZHU
  2000-04-21 16:58         ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Shenghuo ZHU @ 2000-04-21 16:40 UTC (permalink / raw)


>>>>> "LMI" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

LMI> David Hedbor <david@hedbor.org> writes:
>> Function Name                                           Call Count  Elapsed Time  Average Time
>> ======================================================  ==========  ============  ============
>> gnus-active-to-gnus-format                              3           36.072252999  12.024084333
>> gnus-group-get-new-news                                 1           29.734059000  29.734059000

LMI> That's kinda odd, since gnus-group-get-new-news calls
LMI> gnus-active-to-gnus-format, so it should be impossible for this to
LMI> happen.  Might be some kinda recursitivity issue.

LMI> Anyway:

>> gnus-agent-save-active                                  1           18.310324999  18.310324999

LMI> This looks way too slow.  18 seconds to save the active file?  Are you 
LMI> sure you've byte-compiled everything?

The reason might be the special character issue. After adding those
web groups, the group names become weird, so that a lot of
back-slashes have to be added to the active files. This could be
time-consuming.

-- 
Shenghuo



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

* Re: Slowness when 'g'etting news.
  2000-04-21 16:40       ` Shenghuo ZHU
@ 2000-04-21 16:58         ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2000-04-21 16:58 UTC (permalink / raw)


Shenghuo ZHU <zsh@cs.rochester.edu> writes:

> The reason might be the special character issue. After adding those
> web groups, the group names become weird, so that a lot of
> back-slashes have to be added to the active files. This could be
> time-consuming.

Yes, that's true.  David, do you use any web groups, and are those
covered by the Agent?

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



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

end of thread, other threads:[~2000-04-21 16:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-28 21:32 Slowness when 'g'etting news David Hedbor
1999-12-28 23:54 ` Simon Josefsson
1999-12-30 19:58   ` David Hedbor
2000-04-21 16:35     ` Lars Magne Ingebrigtsen
2000-04-21 16:40       ` Shenghuo ZHU
2000-04-21 16:58         ` Lars Magne Ingebrigtsen

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).