From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: hidden buffers for async Date: Mon, 13 Jun 2005 09:03:14 +0300 Organization: JURTA Message-ID: <8764wi25kt.fsf@jurta.org> References: <6dbd4d0005060619227dd41364@mail.gmail.com> <87vf4oaft8.fsf@zemdatav.stor.no-ip.org> <87vf4oaao5.fsf@kanga.tapsellferrier.co.uk> <87ll5ka5j7.fsf@zemdatav.stor.no-ip.org> <87is0oa35h.fsf_-_@kanga.tapsellferrier.co.uk> <874qc4tzbo.fsf@kanga.tapsellferrier.co.uk> <87hdg37aza.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1118644535 10765 80.91.229.2 (13 Jun 2005 06:35:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2005 06:35:35 +0000 (UTC) Cc: rms@gnu.org, nferrier@tapsellferrier.co.uk, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 13 08:35:33 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DhiXW-00053Z-P0 for ged-emacs-devel@m.gmane.org; Mon, 13 Jun 2005 08:35:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DhiZG-0007sQ-07 for ged-emacs-devel@m.gmane.org; Mon, 13 Jun 2005 02:37:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DhiU1-0007Oi-Hq for emacs-devel@gnu.org; Mon, 13 Jun 2005 02:31:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DhiU0-0007Nm-5T for emacs-devel@gnu.org; Mon, 13 Jun 2005 02:31:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DhiTz-0007Ng-Ii for emacs-devel@gnu.org; Mon, 13 Jun 2005 02:31:39 -0400 Original-Received: from [194.126.101.116] (helo=HOT-Bounce1.hot.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DhiUl-0007pb-Nq; Mon, 13 Jun 2005 02:32:27 -0400 Original-Received: from mail.neti.ee (Relay8 [192.168.1.27]) by HOT-Bounce1.hot.ee (Postfix) with ESMTP id 7738913FFE1; Mon, 13 Jun 2005 09:18:45 +0300 (EEST) Original-Received: from mail.neti.ee (80-235-33-21-dsl.mus.estpak.ee [80.235.33.21]) by Relayhost2.neti.ee (Postfix) with ESMTP id 7022F31B1; Mon, 13 Jun 2005 09:30:51 +0300 (EEST) Original-To: Stefan Monnier In-Reply-To: <87hdg37aza.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sun, 12 Jun 2005 13:18:02 -0400") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:38690 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38690 >> I agree that downloading a lot of files will be silly. Perhaps I will >> set up a pool of 20 or so buffers for downloads and block or error >> when the pool is exhausted. > > My guess is that the possible performance hit you'd get by using 100 or > 1000 buffers would still be insignificant. > > Stefan "whose Emacs routinely has 100 buffers" M-: (length (buffer-list)) RET 322 I rarely close visited files and use desktop.el. This way I give Emacs pretty good stress-testing. With so many buffers some Emacs packages (Dired, Info) suffer from the noticeable slowdown. However, I can't definitely attribute this to the number of buffers, because in `emacs -Q -D' after (dotimes (i 1000) (generate-new-buffer "buffer")) there is no slowdown. -- Juri Linkov http://www.jurta.org/emacs/