From: vincent.belaiche@gmail.com (Vincent Belaïche)
To: emacs-devel@gnu.org
Subject: Recentf cleanup optmization
Date: Sat, 05 Sep 2009 08:32:39 +0200 [thread overview]
Message-ID: <87iqfxnbp4.fsf@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 384 bytes --]
Dear Emacs expert,
I realized that recentf cleanup is very slow when you have a long list
of saved items (e.g. as few as 60). This is because there is a duplicate
suppression based on linear search (quadratic time).
Starting from latest code on CVS I made an optimization using a hash
table, and this solves the issue.
Please find it herein attached.
Best regards,
Vincent.
[-- Attachment #2: Optimization --]
[-- Type: application/octet-stream, Size: 25196 bytes --]
next reply other threads:[~2009-09-05 6:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-05 6:32 Vincent Belaïche [this message]
2009-09-08 16:23 ` Recentf cleanup optmization Stefan Monnier
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=87iqfxnbp4.fsf@gmail.com \
--to=vincent.belaiche@gmail.com \
--cc=emacs-devel@gnu.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 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.