Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: ding@gnus.org
Subject: Re: Outstanding stuff?
Date: Sun, 24 Oct 2010 19:20:00 +0200	[thread overview]
Message-ID: <m3vd4rjynz.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <pkn4ochxl6e.fsf@gmail.com>

Robert Pluim <rpluim@gmail.com> writes:

> Actually, now that I've read the relevant section of the IMAP rfc for
> the first time in my life, I'm more suspicious about the BODY.PEEK[]
> thing, doesn't that download the entire message? Surely at most the
> headers are required?

Yes, and I've now made that change, so I now get this pattern:

19:05:12 1086 SELECT "efn"
19:05:12 1087 UID FETCH 42 (UID RFC822.SIZE BODYSTRUCTURE BODY.PEEK[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref To Newsgroups)])
19:05:12 1088 UID COPY 42 "Test"
19:05:12 1089 UID STORE 42 +FLAGS.SILENT (\Deleted)
19:05:12 1090 EXPUNGE
19:05:12 1091 EXAMINE "Test"
19:05:12 1092 UID SEARCH HEADER Message-Id "<alpine.LRH.2.00.1009181734090.29309@luke.ifi.uio.no>"
19:05:12 1093 SELECT "Test"
19:05:12 1094 UID STORE 4 +FLAGS.SILENT (\Seen)
19:05:12 1095 SELECT "Test"
19:05:12 1096 UID FETCH 1:* FLAGS

Which is still way excessive, but let's examine it and consider what our
options are for speeding this up.

19:05:12 1086 SELECT "efn"

Can't be removed, but could (in theory) happen once.

19:05:12 1087 UID FETCH 42 (UID RFC822.SIZE BODYSTRUCTURE BODY.PEEK[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref To Newsgroups)])
19:05:12 1091 EXAMINE "Test"
19:05:12 1092 UID SEARCH HEADER Message-Id "<alpine.LRH.2.00.1009181734090.29309@luke.ifi.uio.no>"

We need the Message-ID of the message if we're going to return the
article number.  The question is: Do we need the article number, and the
answer is "kinda".  If the method is covered by the Agent, or the
message is cached, or whatever, then we need to know the new article
number so that we can do the right things there.  We also update the
marks in Gnus immediately, so we need the article number for that too,
although we could do without, since the next `g' will update Gnus
wrt. the target group anyway.  (If that group allows flags.)

So: If we want a sloppier not-quite-coherent update, we could get rid of
those.

19:05:12 1088 UID COPY 42 "Test"

Can't be removed.  :-)

19:05:12 1089 UID STORE 42 +FLAGS.SILENT (\Deleted)

Could be batched.

19:05:12 1090 EXPUNGE

Could easily be postponed until the last move.

19:05:12 1093 SELECT "Test"
19:05:12 1094 UID STORE 4 +FLAGS.SILENT (\Seen)

This is probably superfluous?  IMAP probably copies over all the marks
anyway? 

19:05:12 1095 SELECT "Test"
19:05:12 1096 UID FETCH 1:* FLAGS

I have no idea what's this is about.

Oh, it's this thing at the end:

    ;; Re-activate all groups that have been moved to.
    (with-current-buffer gnus-group-buffer
      (let ((gnus-group-marked to-groups))
	(gnus-group-get-new-news-this-group nil t)))

But that's only done once per move.        

So I'm not sure how much faster things could be without making things
kinda weird.

HOWEVER, we could just cheat and totally special-case things for
nnimap.  That is, a new interface function

(*-request-move-articles-internally articles from-group server to-group)

If it exists, and the move is internal (from one group on the same IMAP
server to another), this would just issue COPY + \Deleted + EXPUNGE, and
forget about all Gnus niceties with the cache/agent/etc.

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




  parent reply	other threads:[~2010-10-24 17:20 UTC|newest]

Thread overview: 113+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-19 19:53 Lars Magne Ingebrigtsen
2010-10-19 21:46 ` Steinar Bang
2010-10-20  0:11   ` Lars Magne Ingebrigtsen
2010-10-20 10:47     ` Steinar Bang
2010-10-21 17:16   ` Tibor Simko
2010-10-20  0:24 ` Dan Christensen
2010-10-20 15:09   ` Ted Zlatanov
2010-10-20 17:34     ` Lars Magne Ingebrigtsen
2010-10-20 17:59       ` Ted Zlatanov
2010-10-20 18:03         ` Lars Magne Ingebrigtsen
2010-10-20 18:39           ` Ted Zlatanov
2010-10-20 17:35   ` Lars Magne Ingebrigtsen
2010-10-21  1:14     ` Lars Magne Ingebrigtsen
2010-10-28  1:05       ` Dan Christensen
2010-10-29 22:40         ` Lars Magne Ingebrigtsen
2010-11-01 17:28           ` Dan Christensen
2010-11-01 18:48             ` Lars Magne Ingebrigtsen
2010-10-20  7:51 ` Julien Danjou
2010-10-21 15:52   ` Lars Magne Ingebrigtsen
2010-10-21 16:03     ` Julien Danjou
2010-10-21 20:27       ` Dave Goldberg
2010-10-21 22:22         ` Dan Christensen
2010-10-23 13:16       ` Julien Danjou
2010-10-24  4:28         ` Lars Magne Ingebrigtsen
2010-10-20  9:34 ` Robert Pluim
2010-10-20 11:12   ` Ted Zlatanov
2010-10-24 17:20   ` Lars Magne Ingebrigtsen [this message]
2010-10-25  7:18     ` Robert Pluim
2010-10-25 17:12       ` Steinar Bang
2010-10-25 17:25         ` Adam Sjøgren
2010-10-25 20:08           ` Steinar Bang
2010-10-25 20:11             ` Adam Sjøgren
2010-10-25 17:14       ` Steinar Bang
2010-10-25 17:24         ` Robert Pluim
2010-10-25 20:11           ` Steinar Bang
2010-10-25 22:48             ` Steinar Bang
2010-10-29 22:24             ` Lars Magne Ingebrigtsen
2010-10-25 18:19     ` Ted Zlatanov
2010-10-29 22:27       ` Lars Magne Ingebrigtsen
2010-10-26  0:59     ` Dan Christensen
2010-10-26  6:30       ` Steinar Bang
2010-10-29 22:28         ` Lars Magne Ingebrigtsen
2010-10-30  8:25           ` Steinar Bang
2010-10-30 11:12             ` Lars Magne Ingebrigtsen
2010-10-30 14:16               ` Steinar Bang
2010-10-30 16:45                 ` Agent improvements (was: Outstanding stuff?) Lars Magne Ingebrigtsen
2010-10-30 17:45                   ` Agent improvements Steinar Bang
2010-10-30 19:28                     ` Lars Magne Ingebrigtsen
2010-10-30 20:30                       ` Steinar Bang
2010-10-20 10:49 ` Outstanding stuff? Steinar Bang
2010-10-21 16:17   ` Lars Magne Ingebrigtsen
2010-10-20 11:53 ` Gijs Hillenius
2010-10-21 16:19   ` Lars Magne Ingebrigtsen
2010-10-20 12:24 ` Ted Zlatanov
2010-10-20 16:30   ` Lars Magne Ingebrigtsen
2010-10-20 16:34     ` Ted Zlatanov
2010-10-20 17:13       ` Lars Magne Ingebrigtsen
2010-10-20 14:40 ` Julien Danjou
2010-10-21  9:18   ` Julien Danjou
2010-10-21 16:21   ` Lars Magne Ingebrigtsen
2010-10-21 16:25     ` Julien Danjou
2010-10-20 15:11 ` Ted Zlatanov
2010-10-21 16:23   ` Lars Magne Ingebrigtsen
2010-10-21 17:36 ` Tibor Simko
2010-10-21 17:39   ` Lars Magne Ingebrigtsen
2010-10-21 20:14     ` Tibor Simko
2010-10-24  4:40       ` Lars Magne Ingebrigtsen
2010-10-30 19:58         ` Tibor Simko
2010-10-30 20:03           ` Lars Magne Ingebrigtsen
2010-10-30 21:14             ` Tibor Simko
2010-11-01 12:38               ` Tibor Simko
2010-11-01 18:24                 ` Lars Magne Ingebrigtsen
2010-11-02  9:19                   ` Tibor Simko
2010-11-04 19:53                     ` Lars Magne Ingebrigtsen
2010-10-21 18:41 ` Rémi Letot
2010-10-24  4:20   ` Lars Magne Ingebrigtsen
2010-10-24  8:49     ` Rémi Letot
2010-10-24 16:20       ` Lars Magne Ingebrigtsen
2010-10-24 19:07         ` Rémi Letot
2010-10-24 19:14           ` Lars Magne Ingebrigtsen
2010-10-24 19:16             ` Rémi Letot
2010-10-24 19:19               ` Lars Magne Ingebrigtsen
2010-10-24 19:30                 ` Rémi Letot
2010-10-24 19:33                   ` Lars Magne Ingebrigtsen
2010-10-24 19:42                     ` Rémi Letot
2010-10-24 19:44                       ` Lars Magne Ingebrigtsen
2010-10-24 19:50                         ` Rémi Letot
2010-10-24 19:52                           ` Lars Magne Ingebrigtsen
2010-10-24 19:57                             ` Rémi Letot
2010-10-24 20:00                               ` Lars Magne Ingebrigtsen
2010-10-24 20:40                                 ` Rémi Letot
2010-10-21 19:10 ` Robert Pluim
2010-10-24  4:23   ` Lars Magne Ingebrigtsen
2010-10-31 22:25 ` Mario Peter
2010-10-31 22:34   ` Forwarding rfc822 messages (was: Outstanding stuff?) Lars Magne Ingebrigtsen
2010-11-01  3:51     ` Forwarding rfc822 messages Dave Goldberg
2010-11-01 22:42       ` Mario Peter
2010-11-01  6:57     ` Mario Peter
2010-11-01 18:16       ` Lars Magne Ingebrigtsen
2010-11-01 22:16         ` Mario Peter
2010-11-02  7:17         ` Reiner Steib
2010-11-02 19:40           ` Lars Magne Ingebrigtsen
2010-12-05  0:21 ` Outstanding stuff? Steinar Bang
2010-12-05 12:06   ` Sender header (was: Outstanding stuff?) Lars Magne Ingebrigtsen
2010-12-05 12:39     ` Sender header Byung-Hee HWANG
2010-12-05 18:18     ` Steinar Bang
2010-12-05 18:35       ` Lars Magne Ingebrigtsen
2010-12-05 18:41         ` Lars Magne Ingebrigtsen
2010-12-05 22:09           ` Steinar Bang
2010-12-05 22:42             ` Lars Magne Ingebrigtsen
2010-12-06 20:24               ` Steinar Bang
2010-12-06 20:47                 ` Lars Magne Ingebrigtsen
2010-12-06 20:50                 ` Steinar Bang

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=m3vd4rjynz.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    --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).