[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Speed of all-completions
From: |
Lawrence Mitchell |
Subject: |
Re: Speed of all-completions |
Date: |
Thu, 29 Apr 2010 16:41:49 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (usg-unix-v) |
Stefan Monnier wrote:
> Barely 6 years ago, Jesper Harder <address@hidden> wrote:
[...]
> 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.
FWIW, I see the same behaviour here 2 times out of 3. On the
third occasion, Emacs takes about half a second in GC. With the
following test case:
(defvar foo-ob nil)
(defun foo (n)
(when (null foo-ob)
(setq foo-ob (make-vector 255 0))
(dotimes (i n)
(intern (format "f%i" i) foo-ob)))
(time (all-completions "f" foo-ob)))
(byte-compile 'foo)
(setq garbage-collection-messages t)
(setq gc-cons-threshold 400000)
(foo 100000)
With (setq gc-cons-threshold 4000000) all-completions GCs one
time in five.
Cheers,
Lawrence
--
address@hidden