all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [harder@ifa.au.dk: Speed of all-completions]
@ 2004-06-13 21:48 Richard Stallman
  2004-06-13 22:22 ` Andreas Schwab
  0 siblings, 1 reply; 20+ messages in thread
From: Richard Stallman @ 2004-06-13 21:48 UTC (permalink / raw)


Would someone please take a look at this?

------- Start of forwarded message -------
To: emacs-pretest-bug@gnu.org
From: Jesper Harder <harder@ifa.au.dk>
Date: Sun, 30 May 2004 17:37:56 +0200
Subject: Speed of all-completions
Sender: emacs-pretest-bug-bounces+rms=gnu.org@gnu.org
X-Spam-Status: No, hits=-0.5 required=5.0
	tests=USER_AGENT_GNUS_UA
	version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)

In GNU Emacs 21.3.50.10 (i686-pc-linux-gnu, GTK+ Version 2.0.2)
 of 2004-05-25 on defun.localdomain

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.

- -- 
Jesper Harder                                <http://purl.org/harder/>


_______________________________________________
Emacs-pretest-bug mailing list
Emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2004-06-20 22:35 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-13 21:48 [harder@ifa.au.dk: Speed of all-completions] Richard Stallman
2004-06-13 22:22 ` Andreas Schwab
2004-06-14 23:27   ` David Kastrup
2004-06-15  0:04     ` Luc Teirlinck
2004-06-15  7:29       ` David Kastrup
2004-06-15 11:00     ` Andreas Schwab
2004-06-15 11:28       ` David Kastrup
2004-06-15 12:13         ` Andreas Schwab
2004-06-15 13:27           ` David Kastrup
2004-06-15 13:40             ` Andreas Schwab
2004-06-15 13:48               ` David Kastrup
2004-06-15 14:08                 ` Andreas Schwab
2004-06-15 14:19                   ` David Kastrup
2004-06-15 14:32                     ` Andreas Schwab
2004-06-15 15:42             ` Luc Teirlinck
2004-06-15 15:55               ` David Kastrup
2004-06-18 18:45                 ` Luc Teirlinck
2004-06-19  3:19                   ` Richard Stallman
2004-06-20 22:35                     ` David Kastrup
2004-06-15 18:13   ` Richard Stallman

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.