Gnus development mailing list
 help / color / mirror / Atom feed
From: Francis Moreau <francis.moro@gmail.com>
To: ding@gnus.org
Subject: Re: Improving Gnus speed
Date: Sun, 21 Nov 2010 14:54:22 +0100	[thread overview]
Message-ID: <m24oba93zl.fsf@gmail.com> (raw)
In-Reply-To: <m31v6fusde.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Sun, 21 Nov 2010 07:02:05 +0100")

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

> Francis Moreau <francis.moro@gmail.com> writes:
>
>> For example, I have a group which contains 1298 articles. Entering it
>> lasts 9 seconds:
>>
>>     - 7 secs in the fetching process
>>     - 2 secs in sorting + summary buffer generation
>
> [...]
>
>> I'm giving you the elp results when entering in the group containing
>> 1298 articles, with all articles displayed:
>>
>> gnus-thread-total-score                                 21809       18.607898999  0.0008532211
>
> elp is still claiming that this function is being called 21k times, and
> that this takes 18 seconds.  Which sort of doesn't make much sense, since:
>
>> gnus-group-select-group                                 1           10.66085      10.66085
>
> This is surely the top-level function being called, so the 18 seconds
> sorting should be counted here, too, but it isn't, which is why I was
> wondering whether you were doing other things between each
> elp-results... 

I agree with you, these numbers are crazy. Actually I was looking at the
time elapsed, and I can't interpret them at all. It says 18.6 seconds
where as the whole process lasts 10 seconds at most.

I re-did several times the same benchmarks and the figures seem stable.

>
> Anyway:
>
>> gnus-get-newsgroup-headers-xover                        1           6.78624       6.78624
>
> There's the seven seconds...
>

Yes the longuest one

>
>> gnus-summary-number-of-articles-in-thread               22361       3.2177489999  0.0001439000
>
> And there's a totally crazy call number again.  That function should be
> called (generally) once per displayed article in the summary buffer (if
> you have that in your summary line format).  But it's called 10x the
> number of times.
>
>> gnus-dd-mmm                                             1301        0.9418810000  0.0007239669
>
> I'm guessing you have a somewhat non-standard summary line format for
> that function to show up, but at least it tallies up with the number of
> articles in the group, somewhat.

Here's my summary line format if that can help:

  (setq gnus-summary-line-format
        (concat
         "%0{%U%R%z%}" "%10{│%}" "%3t" "%10{│%}"
         "%(%-20,20f %)" "%10{│%}" "%1{%d%}" "%10{│%}"
         "%6V" "%10{│%}" "%10{%B%}" "%s\n"))
  

>> gnus-id-to-thread                                       21805       0.1913100000  8.773...e-06
>
> Again, a totally ridiculous call number...
>
> I'd suggest removing all Gnus customisations to find out what triggers
> these weird call numbers.

Ok, I'm trying...

Let's remove my summary line format customisation... and the numbers are
now:

  gnus-topic-select-group                 1           8.071814      8.071814
  gnus-group-select-group                 1           8.071757      8.071757
  gnus-group-read-group                   1           8.071748      8.071748
  gnus-summary-read-group                 1           8.071693      8.071693
  gnus-summary-read-group-1               1           8.071681      8.071681
  gnus-select-newsgroup                   1           7.30483       7.30483
  gnus-summary-limit-children             1324        7.1840629999  0.0054260294
  gnus-fetch-headers                      1           6.445576      6.445576
  gnus-get-newsgroup-headers-xover        1           6.420683      6.420683
  gnus-articles-to-read                   1           0.818016      0.818016
  gnus-summary-prepare                    1           0.573297      0.573297
  gnus-summary-prepare-threads            1           0.553526      0.553526
  gnus-run-hooks                          1337        0.2399320000  0.0001794554
  gnus-summary-highlight-line             1326        0.2316510000  0.0001746990
  gnus-sort-threads-recursive             837         0.1313619999  0.0001569438
  gnus-summary-initial-limit              1           0.10973       0.10973
  gnus-summary-highlight-line-0           1326        0.0972370000  7.333...e-05
  gnus-summary-maybe-hide-threads         1           0.04301       0.04301
  gnus-summary-hide-all-threads           1           0.043         0.043
  gnus-summary-next-thread                44          0.0411179999  0.0009344999
  gnus-summary-go-to-next-thread          44          0.040834      0.0009280454
  gnus-retrieve-headers                   2           0.03551       0.017755
  gnus-map-function                       1352        0.0294150000  2.175...e-05

which seem much more sensible.

Now restoring my summary line format and removing only the "%6V" format
specifier gives almost the same sane results.

-- 
Francis



  reply	other threads:[~2010-11-21 13:54 UTC|newest]

Thread overview: 103+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-09 12:35 Francis Moreau
2010-11-09 13:45 ` Didier Verna
2010-11-09 13:55   ` Francis Moreau
2010-11-09 14:00     ` Knut Anders Hatlen
2010-11-09 14:22       ` Steinar Bang
2010-11-09 14:29       ` Francis Moreau
2010-11-09 14:49         ` Richard Riley
2010-11-09 16:37           ` Didier Verna
2010-11-09 16:51             ` Richard Riley
2010-11-09 16:56               ` Steinar Bang
2010-11-09 17:12                 ` Richard Riley
2010-11-09 17:48                   ` Steinar Bang
2010-11-09 18:59                     ` Adam Sjøgren
2010-11-09 19:17                       ` Steinar Bang
2010-11-09 19:06                     ` Richard Riley
2010-11-09 14:49     ` Didier Verna
2010-11-09 15:27       ` Richard Riley
2010-11-09 15:42         ` Francis Moreau
2010-11-09 16:35         ` Didier Verna
2010-11-09 16:49           ` Richard Riley
2010-11-09 19:52           ` Francis Moreau
2010-11-09 20:48             ` Richard Riley
2010-11-09 15:04     ` Adam Sjøgren
2010-11-09 18:55 ` Lars Magne Ingebrigtsen
2010-11-09 19:58   ` Francis Moreau
2010-11-09 21:03     ` Andreas Schwab
2010-11-09 21:49       ` Ted Zlatanov
2010-11-09 22:45         ` Richard Riley
2010-11-10  8:49           ` Francis Moreau
2010-11-10 10:31             ` Francis Moreau
2010-11-10  9:39           ` Julien Danjou
2010-11-10 13:26             ` Ted Zlatanov
2010-11-10 13:28               ` Julien Danjou
2010-11-10 14:12               ` Richard Riley
2010-11-10 17:40                 ` Andreas Schwab
2010-11-10 13:38       ` Francis Moreau
2010-11-09 21:27   ` Lars Magne Ingebrigtsen
2010-11-10 14:16   ` Francis Moreau
2010-11-10 18:20     ` Lars Magne Ingebrigtsen
2010-11-11  8:14       ` Francis Moreau
2010-11-11 18:34         ` Lars Magne Ingebrigtsen
2010-11-11 19:54           ` Francis Moreau
2010-11-14 16:10             ` Lars Magne Ingebrigtsen
2010-11-15  9:40               ` Francis Moreau
2010-11-21  6:02                 ` Lars Magne Ingebrigtsen
2010-11-21 13:54                   ` Francis Moreau [this message]
2010-11-21 18:17                     ` Lars Magne Ingebrigtsen
2010-11-21 19:37                       ` Francis Moreau
2010-11-24 22:09                         ` Lars Magne Ingebrigtsen
2010-11-25  7:35                           ` Francis Moreau
2010-11-12 11:11       ` Francis Moreau
2010-11-14 16:11         ` Lars Magne Ingebrigtsen
2010-11-15  9:07           ` Francis Moreau
2010-11-21  5:44             ` Lars Magne Ingebrigtsen
2010-11-21 14:07               ` Francis Moreau
2010-11-10 18:21     ` Lars Magne Ingebrigtsen
2010-11-11  8:22       ` Francis Moreau
2010-11-11 18:33         ` Lars Magne Ingebrigtsen
2010-11-11 19:56           ` Francis Moreau
2010-11-14 16:10             ` Lars Magne Ingebrigtsen
2010-11-12 18:55     ` Dan Christensen
2010-11-12 20:07       ` Francis Moreau
2010-11-12 21:38         ` Dan Christensen
2010-11-13 20:46           ` Francis Moreau
2010-11-14  9:32             ` Francis Moreau
2010-11-29  0:40               ` Dan Christensen
2010-11-29  4:47                 ` Lars Magne Ingebrigtsen
2010-11-29  6:01                   ` Miles Bader
2010-11-29  6:18                     ` Lars Magne Ingebrigtsen
2010-11-29  6:36                       ` Lars Magne Ingebrigtsen
2010-11-29  6:40                       ` Daniel Pittman
2010-11-29  8:27                 ` Francis Moreau
2010-11-29 19:30                   ` Dan Christensen
2010-11-29 20:10                     ` Francis Moreau
2010-11-29 20:23                       ` Dan Christensen
2010-11-29 20:56                         ` Francis Moreau
2010-11-29 21:30                           ` Dan Christensen
2010-12-05 15:01                             ` Lars Magne Ingebrigtsen
2010-12-05 18:05                               ` Dan Christensen
2010-12-05 18:46                                 ` Lars Magne Ingebrigtsen
2010-11-14 16:13             ` Lars Magne Ingebrigtsen
2010-11-15  9:03               ` Francis Moreau
2010-11-21  5:43                 ` Lars Magne Ingebrigtsen
2010-11-21 14:39                   ` Francis Moreau
2010-11-14 16:14           ` Lars Magne Ingebrigtsen
2010-11-14 18:10             ` Dan Christensen
2010-11-14 18:26               ` Lars Magne Ingebrigtsen
2010-11-14 21:27                 ` Dan Christensen
2010-11-21  5:42                   ` Lars Magne Ingebrigtsen
2010-11-21 20:42                     ` Dan Christensen
2010-11-21 21:46                       ` Francis Moreau
2010-11-21 22:52                         ` Dan Christensen
2010-11-22  7:57                           ` Francis Moreau
2010-11-24 22:11                       ` Lars Magne Ingebrigtsen
2010-11-29  0:29                       ` Dan Christensen
2010-11-29  4:41                         ` Lars Magne Ingebrigtsen
2010-11-29 20:17                           ` Dan Christensen
2010-12-05 15:00                             ` Date parser in C (was: Improving Gnus speed) Lars Magne Ingebrigtsen
2010-12-05 17:27                               ` Andreas Schwab
2010-12-05 17:38                                 ` Date parser in C Lars Magne Ingebrigtsen
2010-11-09 21:47 ` Improving Gnus speed Ted Zlatanov
2010-11-09 22:55   ` Steinar Bang
2010-11-10  4:27 ` Eden Cardim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m24oba93zl.fsf@gmail.com \
    --to=francis.moro@gmail.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).