From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Jesper Harder <harder@ifa.au.dk>
Cc: emacs-devel@gnu.org
Subject: Re: Speed of all-completions
Date: Thu, 29 Apr 2010 11:14:33 -0400 [thread overview]
Message-ID: <jwviq7axpks.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m3ekp2lycr.fsf@defun.localdomain> (Jesper Harder's message of "Sun, 30 May 2004 17:37:56 +0200")
Barely 6 years ago, Jesper Harder <harder@ifa.au.dk> wrote:
> I use icomplete-mode and I've noticed that it feels more sluggish in
> cvs Emacs than in Emacs 21.3.
> Profiling shows that the bulk of the time is spent in
> `all-completions', so I tried to benchmark it with this example:
> (defmacro time (form)
> `(let ((t1 (float-time)))
> ,form
> (- (float-time) t1)))
> (let ((oba (make-vector 255 0)))
> (dotimes (i 10000)
> (intern (format "f%i" i) oba))
> (time
> (all-completions "f" oba)))
> The time used was:
> cvs Emacs: 0.16448211669921875
> Emacs 21.3: 0.01507115364074707
> i.e. `all-completions' is roughly an order of magnitude slower in cvs
> Emacs.
I cannot reproduce it now. I tried it with `emacs21', `emacs22', and
`emacs23' (under Debian testing, and adding a 0 to the number of
iterations of your test), and I do see that Emacs is getting slower, the
difference is not nearly as large, changing from 0.05s to
0.06s, basically.
Stefan "you can always count on a prompt answer"
next parent reply other threads:[~2010-04-29 15:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <m3ekp2lycr.fsf@defun.localdomain>
2010-04-29 15:14 ` Stefan Monnier [this message]
2010-04-29 15:41 ` Speed of all-completions Lawrence Mitchell
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=jwviq7axpks.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=harder@ifa.au.dk \
/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.