all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: refile too slow
Date: Tue, 24 Oct 2017 20:04:09 -0700	[thread overview]
Message-ID: <CAJcAo8sZacZ_dS8zD__C9Nu0eC_agaGS9=rWuRD2-UOLoAO0yw@mail.gmail.com> (raw)
In-Reply-To: <CAJcAo8tM=f_SnUVj4nXBi+vmnemvDTOR7B_3aoHq0s5iH98_2g@mail.gmail.com>

On 10/5/17, Samuel Wales <samologist@gmail.com> wrote:
> delete-dups seems suspicious but what do i know.  i wonder if
> cl-delete-duplicates is more efficient.

perhaps it has been made more efficient in new emacs versions than 24?

>
> (defun delete-dups (list)
>   "Destructively remove `equal' duplicates from LIST.
> Store the result in LIST and return it.  LIST must be a proper list.
> Of several `equal' occurrences of an element in LIST, the first
> one is kept."
>   (let ((tail list))
>     (while tail
>       (setcdr tail (delete (car tail) (cdr tail)))
>       (setq tail (cdr tail))))
>   list)
>


-- 
The Kafka Pandemic: <http://thekafkapandemic.blogspot.com>

The disease DOES progress. MANY people have died from it. And ANYBODY
can get it at any time.

"You’ve really gotta quit this and get moving, because this is murder
by neglect." ---
<http://www.meaction.net/2017/02/03/pwme-people-with-me-are-being-murdered-by-neglect>.

      reply	other threads:[~2017-10-25  3:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAJcAo8uE4_eTDPdticnkXuTk1nNDasPLYLPR=Tdp-_1UJJsABA@mail.gmail.com>
2017-09-30 23:59 ` refile too slow Samuel Wales
2017-10-05 14:43   ` Nicolas Goaziou
2017-10-05 22:30     ` Samuel Wales
2017-10-25  3:04       ` Samuel Wales [this message]

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='CAJcAo8sZacZ_dS8zD__C9Nu0eC_agaGS9=rWuRD2-UOLoAO0yw@mail.gmail.com' \
    --to=samologist@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.