From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: --with-wide-int Date: Mon, 28 Nov 2011 11:52:57 -0500 Message-ID: References: <4ED04BBC.70803@yandex.ru> <4ED09DD4.1090201@cs.ucla.edu> <4ED0F7ED.8050700@yandex.ru> <4ED15672.9030600@cs.ucla.edu> <4ED33EAD.5040104@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1322499192 20599 80.91.229.12 (28 Nov 2011 16:53:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2011 16:53:12 +0000 (UTC) Cc: Dmitry Antipov , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 28 17:53:08 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 1RV4S4-0003PG-7N for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2011 17:53:08 +0100 Original-Received: from localhost ([::1]:60982 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RV4S3-0006zO-LM for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2011 11:53:07 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:37113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RV4S1-0006zJ-Jo for emacs-devel@gnu.org; Mon, 28 Nov 2011 11:53:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RV4Ry-0001rR-KW for emacs-devel@gnu.org; Mon, 28 Nov 2011 11:53:05 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:51404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RV4Ry-0001rE-Hh for emacs-devel@gnu.org; Mon, 28 Nov 2011 11:53:02 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id pASGqvjW013697; Mon, 28 Nov 2011 11:52:57 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 2038F58D75; Mon, 28 Nov 2011 11:52:57 -0500 (EST) In-Reply-To: <4ED33EAD.5040104@cs.ucla.edu> (Paul Eggert's message of "Sun, 27 Nov 2011 23:56:29 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4055=0 X-NAI-Spam-Version: 2.2.0.9286 : core <4055> : streams <705985> : uri <1017635> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:146310 Archived-At: >> So I expect the practical limit to be closer to 1GB. > In practice the limit is a bit less than 2 GiB if you're editing > one big file. (I observed this just now, on Ubuntu 11.10 x86, > by editing a 1947957328-byte text file.) Read-only access to a single such file (i.e. starting a new Emacs session for that file) is indeed not affected by fragmentation. > Simple edits and incremental searches are fast; I'd be surprised if non-simple edits (e.g. insertion of enough text to overflow the gap and force a reallocation) works at all. It's also to be expected that viewing such a 2GB file will fail if you've already viewed a 1GB file in the same session. I.e. 2GB files will work sometimes, but e.g. for Rmail-style uses (one of the more convincing use cases, AFAIK), I don't think 2GB is a realistic limit. Stefan