From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Memory again Date: Sat, 26 Nov 2011 23:00:05 +0200 Message-ID: <83lir27g6i.fsf@gnu.org> References: <4ED0F945.5090805@yandex.ru> <83pqge7syw.fsf@gnu.org> <83mxbi7hip.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1322341246 4050 80.91.229.12 (26 Nov 2011 21:00:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 26 Nov 2011 21:00:46 +0000 (UTC) Cc: antipov@mvista.com, emacs-devel@gnu.org To: carstenmattner@googlemail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 26 22:00:42 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RUPMV-0004wO-TC for ged-emacs-devel@m.gmane.org; Sat, 26 Nov 2011 22:00:40 +0100 Original-Received: from localhost ([::1]:50838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUPMV-0004wc-7t for ged-emacs-devel@m.gmane.org; Sat, 26 Nov 2011 16:00:39 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:57207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUPMS-0004wX-HG for emacs-devel@gnu.org; Sat, 26 Nov 2011 16:00:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUPMQ-0007ht-QH for emacs-devel@gnu.org; Sat, 26 Nov 2011 16:00:36 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:47433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUPMQ-0007hp-IH for emacs-devel@gnu.org; Sat, 26 Nov 2011 16:00:34 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LVA00400CZXX900@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Sat, 26 Nov 2011 23:00:02 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.100.85]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LVA003X8D000DU0@a-mtaout20.012.net.il>; Sat, 26 Nov 2011 23:00:01 +0200 (IST) In-reply-to: <83mxbi7hip.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146272 Archived-At: > Date: Sat, 26 Nov 2011 22:31:10 +0200 > From: Eli Zaretskii > Cc: antipov@mvista.com, emacs-devel@gnu.org > > If you start a fresh Emacs and visit a very large file, do you see the > footprint increase by approximately that file's size? And if you then > kill the buffer visiting the file, do you see the footprint go down > back to almost what it was after startup? I should amend that: depending on what packages are loaded when the file is first time visited, you may need to do this visit-then-kill routine a couple of times, before you see the result I'd expect: that the footprint goes up by about the size of the file, then goes back down to what it was before. The first time you visit the file, you may see memory increase due to loading packages such as the major and minor modes used by the file.