[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

address@hidden: Speed of all-completions]

From: Richard Stallman
Subject: address@hidden: Speed of all-completions]
Date: Sun, 13 Jun 2004 17:48:50 -0400

Would someone please take a look at this?

------- Start of forwarded message -------
To: address@hidden
From: Jesper Harder <address@hidden>
Date: Sun, 30 May 2004 17:37:56 +0200
Subject: Speed of all-completions
Sender: address@hidden
X-Spam-Status: No, hits=-0.5 required=5.0
X-Spam-Checker-Version: SpamAssassin 2.55 (

In GNU Emacs (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)))
    (- (float-time) t1)))

(let ((oba (make-vector 255 0)))
  (dotimes (i 10000)
    (intern (format "f%i" i) oba))
   (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

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

Emacs-pretest-bug mailing list
------- End of forwarded message -------

reply via email to

[Prev in Thread] Current Thread [Next in Thread]