emacs-devel
[Top][All Lists]
Advanced

[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
        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
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------




reply via email to

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