emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Fixing slowness of following Gnus links to	IMAP	articles
Date: Wed, 08 Sep 2010 17:09:38 +0200	[thread overview]
Message-ID: <87eid46zm5.fsf@mundaneum.com> (raw)
In-Reply-To: 87ocd34skq.wl%dmaus@ictsoc.de

Hi David,

David Maus wrote:
> Sébastien Vauban wrote:
>> Thanks a lot for trying to get Gnus better behaving in face of slow servers
>> like Courier...
>>
>> Do "you" want me to test something special to move things forward?
>
> Okay, could you try the attached patch? It is based on current master and
> tries to look up the article number (uid) in NOVCACHE and falls back to UID
> SEARCH when the message is not cached.

Sorry to have awaited so long. Needless to say there are not enough hours in a
day. But, being in Org, I knew I'd do it one day! ;-)


> To make a message enter Gnus' cache you might to modify
> `gnus-cache-enter-articles'. The cache setting I used to test the patch are:
>
> ,----[ gnus.el ]
> | (setq nnimap-nov-is-evil nil)
> | (setq gnus-use-cache t)
> | (setq gnus-cache-enter-articles '(ticked dormant unread read))
> `----

I already had these set to exactly those values...


> NOTE: This patch is deliberately not attached as text/plain to avoid
> the patchtracker catching it (no proper commit message and all).

The results of the jury are...

...
...
...

it just perfectly *works*!  Great, great feature... Thanks a lot.

FYI, here are the results of my first invocation of it:

--8<---------------cut here---------------start------------->8---
org-open-at-point                                             1           18.586562     18.586562
org-gnus-open                                                 1           18.584601     18.584601
org-gnus-follow-link                                          1           18.584491     18.584491
org-gnus-nnimap-cached-article-number                         1           0.092368      0.092368
org-resolve-clocks-if-idle                                    1           0.006299      0.006299
org-user-idle-seconds                                         1           0.006273      0.006273
org-x11-idle-seconds                                          1           0.00626       0.00626
org-in-regexp                                                 2           0.000723      0.0003615
org-clock-update-mode-line                                    1           0.000663      0.000663
org-footnote-at-reference-p                                   1           0.000644      0.000644
org-babel-open-src-block-result                               1           0.00038       0.00038
org-babel-get-src-block-info                                  1           0.000362      0.000362
org-clock-notify-once-if-expired                              1           0.000271      0.000271
org-babel-where-is-src-block-head                             1           0.00027       0.00027
org-clock-get-clock-string                                    1           0.000262      0.000262
org-activate-bracket-links                                    4           0.000246      6.15e-05
org-clock-get-clocked-time                                    2           0.000221      0.0001105
org-activate-plain-links                                      4           0.0001860000  4.650...e-05
org-unfontify-region                                          2           0.00018       9e-05
org-float-time                                                4           0.000176      4.4e-05
org-match-string-no-properties                                3           0.000123      4.1e-05
org-footnote-at-definition-p                                  1           0.000121      0.000121
org-link-unescape                                             1           0.000117      0.000117
org-propertize                                                4           0.000115      2.875e-05
org-remove-flyspell-overlays-in                               4           0.000104      2.6e-05
org-activate-tags                                             2           0.0001009999  5.049...e-05
org-substring-no-properties                                   4           9.7e-05       2.425e-05
org-before-change-function                                    40          9.299...e-05  2.324...e-06
org-activate-footnote-links                                   2           8.5e-05       4.25e-05
org-gnus-no-new-news                                          1           8e-05         8e-05
org-hh:mm-string-to-minutes                                   2           7.6e-05       3.8e-05
org-at-timestamp-p                                            1           6.1e-05       6.1e-05
org-link-expand-abbrev                                        1           4.4e-05       4.4e-05
org-extract-attributes                                        1           4.4e-05       4.4e-05
org-fontify-meta-lines-and-blocks                             2           3.6e-05       1.8e-05
org-do-emphasis-faces                                         2           3.4e-05       1.7e-05
org-on-heading-p                                              1           3.2e-05       3.2e-05
org-hide-wide-columns                                         2           2.600...e-05  1.300...e-05
org-activate-dates                                            2           2.499...e-05  1.249...e-05
org-rear-nonsticky-at                                         8           2.300...e-05  2.875...e-06
org-remove-font-lock-display-properties                       2           2.3e-05       1.15e-05
org-activate-angle-links                                      2           2.3e-05       1.15e-05
org-clocking-p                                                1           1.9e-05       1.9e-05
org-font-lock-add-tag-faces                                   2           1.4e-05       7e-06
org-activate-code                                             2           1.300...e-05  6.500...e-06
org-font-lock-add-priority-faces                              2           1.2e-05       6e-06
org-remove-occur-highlights                                   1           1.1e-05       1.1e-05
org-add-props                                                 1           9e-06         9e-06
org-load-modules-maybe                                        1           7e-06         7e-06
org-raise-scripts                                             2           4.999...e-06  2.499...e-06
org-do-latex-and-special-faces                                2           4.999...e-06  2.499...e-06
org-fontify-entities                                          2           4.999...e-06  2.499...e-06
org-activate-target-links                                     2           4.999...e-06  2.499...e-06
org-clocking-buffer                                           1           4e-06         4e-06
org-font-lock-hook                                            2           4e-06         2e-06
--8<---------------cut here---------------end--------------->8---

So, read 18 seconds instead of the 5 minutes I had before the patch. From
totally unusable, the feature becomes completely usable...

From different tests I've made in my huge work folder (~ 29,300 emails as of
today), the average time is around 14 seconds. Excellent.

I'm excited about using this all the time now... Will you make that part of
the master?

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2010-09-08 15:09 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-28  9:38 Behavior of Gnus when called from an hyperlink Sébastien Vauban
2010-06-28 10:19 ` Tassilo Horn
2010-06-28 11:36   ` Leo
2010-06-28 11:49     ` Carsten Dominik
2010-06-28 12:47       ` Bernt Hansen
2010-06-28 13:57       ` Greg Troxel
2010-06-28 19:44       ` [PATCH] Add customization for WL in `org-link-frame-setup' David Maus
2010-06-29  4:42         ` Carsten Dominik
2010-06-28 19:44       ` [PATCH] Add customization option to open WL links in other frame David Maus
2010-06-30 10:12       ` Behavior of Gnus when called from an hyperlink Noorul Islam K M
2010-07-02  4:44         ` Carsten Dominik
2010-07-02  8:21           ` Leo
2010-07-02  8:21           ` Bastien
2010-07-02 11:59           ` Bernt Hansen
2010-06-28 12:05   ` Sébastien Vauban
2010-06-28 12:51     ` Sébastien Vauban
2010-06-28 14:39       ` Nick Dokos
2010-06-28 14:51         ` Sébastien Vauban
2010-06-28 15:19           ` Nick Dokos
2010-06-28 18:32           ` Tassilo Horn
2010-07-15 21:27             ` Sébastien Vauban
2010-07-16  7:50               ` Tassilo Horn
2010-07-16 11:39                 ` Sébastien Vauban
2010-07-16 18:11                   ` Nick Dokos
2010-07-16 19:23                     ` Sébastien Vauban
2010-07-16 19:51                   ` Sébastien Vauban
2010-07-17  7:18                     ` Tassilo Horn
2010-07-17 16:02                       ` Nick Dokos
2010-07-17 19:59                         ` Sébastien Vauban
2010-07-17 20:49                           ` Nick Dokos
2010-07-17 21:34                             ` Sébastien Vauban
2010-07-17 22:15                               ` Sébastien Vauban
2010-07-19  8:11                                 ` Tassilo Horn
2010-07-19 12:02                                   ` David Maus
2010-07-19 20:37                                     ` Sébastien Vauban
2010-07-20  6:23                                       ` David Maus
2010-07-21 19:59                                         ` Sébastien Vauban
2010-07-22 12:31                                           ` Tassilo Horn
2010-07-26 13:17                                             ` David Maus
2010-07-26 15:12                                               ` Tassilo Horn
2010-07-26 18:47                                                 ` Tassilo Horn
2010-07-27  6:45                                           ` Fixing slowness of following Gnus links to IMAP articles (was: Behavior of Gnus when called from an hyperlink) Tassilo Horn
2010-07-27 20:27                                             ` David Maus
2010-07-27 21:18                                               ` Nick Dokos
2010-07-28  6:50                                                 ` Fixing slowness of following Gnus links to IMAP articles Tassilo Horn
2010-07-29  7:33                                                   ` David Maus
2010-07-29 18:06                                                     ` Tassilo Horn
2010-07-30 20:03                                                       ` Sébastien Vauban
2010-08-15 18:52                                                         ` David Maus
2010-09-08 15:09                                                           ` Sébastien Vauban [this message]
2010-09-08 19:08                                                             ` David Maus
2010-09-08 21:42                                                               ` Sébastien Vauban
2010-09-09 12:19                                                                 ` David Maus
2010-10-01  0:53                                                                   ` Matt Lundin
2010-10-11 18:33                                                                     ` David Maus
2010-08-01  8:38                                                       ` David Maus
2010-07-28  6:36                                               ` Tassilo Horn
2010-07-31  8:34                                                 ` Patchwork: Patch 176 Accepted Bastien Guerry
2010-07-31 18:21                                                   ` Tassilo Horn
2010-07-31 23:52                                                     ` Bastien
2010-08-03  8:01                                             ` Fixing slowness of following Gnus links to IMAP articles Sébastien Vauban
2010-08-05 18:21                                               ` Tassilo Horn
2010-07-20 11:50                                       ` Behavior of Gnus when called from an hyperlink Tassilo Horn
2010-07-21 19:28                                         ` Sébastien Vauban
2010-07-20 12:08                                       ` Bernt Hansen
2010-07-20 16:11                                         ` Tassilo Horn
2010-07-21 19:38                                           ` Sébastien Vauban
2010-07-22 12:29                                             ` Tassilo Horn
2010-07-22 13:51                                               ` Matt Lundin
2010-07-22 19:29                                                 ` Sébastien Vauban
2010-07-22 19:21                                               ` Sébastien Vauban
2010-07-22 20:11                                                 ` Tassilo Horn
2010-07-23  8:54                                                   ` Giovanni Ridolfi
2010-07-23 10:40                                                     ` Tassilo Horn
2010-07-24 22:32                                                       ` Sébastien Vauban
2010-07-21 19:33                                         ` Sébastien Vauban
2010-07-21 23:30                                           ` Bernt Hansen

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87eid46zm5.fsf@mundaneum.com \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).