Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: Kevin Greiner <kevin.greiner@compsol.cc>
Cc: ding@gnus.org
Subject: Re: gnus-agent-expire-group-1 bug?
Date: Mon, 22 Oct 2007 20:54:57 +0200	[thread overview]
Message-ID: <v9abqb569q.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <b4mprz7eakj.fsf@jpl.org> (Katsumi Yamaoka's message of "Mon, 22 Oct 2007 18:57:16 +0900")

On Mon, Oct 22 2007, Katsumi Yamaoka wrote:

> Hi,
>
> The following section (prefixed with `-') in the function
> `gnus-agent-expire-group-1' seems to do nothing, though I'm not
> sure what it is for.  There's no `catch' for `sort-results', and
> the `when' always gets nil.
>
> (I found this while trying replacing `mapcar' with `mapc' or
> `dolist'.
> cf. http://article.gmane.org/gmane.emacs.gnus.general/65429)
>
> --- gnus-agent.el~	2007-10-04 21:53:35 +0000
> +++ gnus-agent.el	2007-10-22 09:55:41 +0000
> @@ -3329,27 +3329,6 @@
>
>  		   (setcdr dlist (cddr dlist)))
>  	       (setq dlist (cdr dlist)))))
> -
> -	 ;; Check the order of the entry positions.  They should be in
> -	 ;; ascending order.  If they aren't, the positions must be
> -	 ;; converted to markers.
> -	 (when (let ((dlist dlist)
> -		     (prev-pos -1)
> -		     pos)
> -		 (while dlist
> -		   (if (setq pos (nth 3 (pop dlist)))
> -		       (if (< pos prev-pos)
> -			   (throw 'sort-results 'unsorted)
> -			 (setq prev-pos pos)))))
> -	   (gnus-message 7 "gnus-agent-expire: Unsorted overview; inserting markers to compensate.")
> -	   (mapcar (lambda (entry)
> -		     (let ((pos (nth 3 entry)))
> -		       (if pos
> -			   (setf (nth 3 entry)
> -				 (set-marker (make-marker)
> -					     pos)))))
> -		   dlist))
> -
>  	 (gnus-message 7 "gnus-agent-expire: Merging entries... Done")
>
>  	 (let* ((len (float (length dlist)))

Kevin, could you please comment on this?  The relevant log entry is

,----
| 2005-03-06  Kevin Greiner  <kevin.greiner@compsol.cc>
| [...]
| 	* gnus-agent.el [...]
| 	(gnus-agent-expire-group-1): Avoid using markers when the overview
| 	is in ascending order; greatly improves performance.
`----

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



  reply	other threads:[~2007-10-22 18:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-22  9:57 Katsumi Yamaoka
2007-10-22 18:54 ` Reiner Steib [this message]
2007-10-23  5:02   ` Kevin Greiner

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=v9abqb569q.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=ding@gnus.org \
    --cc=kevin.greiner@compsol.cc \
    /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).