From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: --with-wide-int Date: Mon, 28 Nov 2011 13:04:23 -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; charset=us-ascii X-Trace: dough.gmane.org 1322503474 21788 80.91.229.12 (28 Nov 2011 18:04:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2011 18:04:34 +0000 (UTC) Cc: Paul Eggert , Dmitry Antipov , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 28 19:04:30 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 1RV5Z7-0000We-TV for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2011 19:04:30 +0100 Original-Received: from localhost ([::1]:44626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RV5Z7-0001NQ-Eg for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2011 13:04:29 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RV5Z5-0001NA-Do for emacs-devel@gnu.org; Mon, 28 Nov 2011 13:04:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RV5Z3-0006nD-BY for emacs-devel@gnu.org; Mon, 28 Nov 2011 13:04:27 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:60735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RV5Z3-0006n8-11 for emacs-devel@gnu.org; Mon, 28 Nov 2011 13:04:25 -0500 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RV5Z1-0007tA-5W; Mon, 28 Nov 2011 13:04:23 -0500 In-Reply-To: (Stefan Monnier's message of "Mon, 28 Nov 2011 11:52:57 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 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:146314 Archived-At: Stefan Monnier writes: >>> 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. Log files produced by various tools are much more interesting that Rmail (which is not that popular). Even read-only access is valuable for such file sometimes. Is it something people do every day? Probably not, but it's very useful when needed.