Subject: bug#18522: 24.4.50; mapcar is very slow

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 28 Feb 2016 14:40:27 +1030

Peter Münster <[email-masked]> writes:

> On Fri, Feb 26 2016, Eli Zaretskii wrote:
>
>>> But I think, that we have found another issue (just a very tiny one):
>>> the number of killed buffers, that are not GCed, keeps growing.
>>
>> Indeed.  I believe Lars is working on this.
>
> It's not only about Gnus buffers. Here some buffer names from my current
> killed-buffer-names list:
> "*Completions*" "*Backtrace*" "gnus-util.el" "jl-encrypt.el"
> "*Completions*" "*Help*" "*Choices*" "misc" "quittance-greenever.tex"
> "*~/ctx/misc/quittance-greenever output*" "*Choices*" "custom.el"

There may be other lists that keep track of those buffers...

Try evaling the following and post the list appearing in *Messages*:

(mapatoms
 (lambda (symbol)
   (when (boundp symbol)
     (let ((value (symbol-value symbol)))
       (while (consp value)
	 (let ((elem (car value)))
	   (when (bufferp elem)
	     (message "%s has a buffer %s"
		      symbol (buffer-name elem))))
	 (setq value (cdr value))))))
 obarray)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no