From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?utf-8?q?R=C3=B6hler?= Newsgroups: gmane.emacs.help Subject: Re: opening large files (few hundred meg) Date: Mon, 28 Jan 2008 21:36:50 +0100 Message-ID: <200801282136.50775.andreas.roehler@online.de> References: <1f94fef6-a335-4ce5-8d4b-7e87025a28dc@e32g2000prn.googlegroups.com> <87r6g1esga.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1201552591 30198 80.91.229.12 (28 Jan 2008 20:36:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jan 2008 20:36:31 +0000 (UTC) Cc: Xah Lee s , Sven Joachim To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 28 21:36:51 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JJaij-0007Sg-Ta for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Jan 2008 21:36:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJaiJ-0002Zm-2K for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Jan 2008 15:36:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJai3-0002ZX-UI for help-gnu-emacs@gnu.org; Mon, 28 Jan 2008 15:36:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJai0-0002YQ-Hd for help-gnu-emacs@gnu.org; Mon, 28 Jan 2008 15:36:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJai0-0002YN-CV for help-gnu-emacs@gnu.org; Mon, 28 Jan 2008 15:36:00 -0500 Original-Received: from moutng.kundenserver.de ([212.227.126.174]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JJahw-0003SF-HV; Mon, 28 Jan 2008 15:35:56 -0500 Original-Received: from noname (p54BEB0A3.dip0.t-ipconnect.de [84.190.176.163]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis) id 0ML31I-1JJahu1kGQ-0002qf; Mon, 28 Jan 2008 21:35:54 +0100 User-Agent: KMail/1.9.5 In-Reply-To: Content-Disposition: inline X-Provags-ID: V01U2FsdGVkX1/qd9qUMK3Tg/+Q3NABQsxvXN8X8qEiULlPoo0 +AnLMFx4HyhoEz/cdLIh6bxXERoZeviiBvbSzLRsKFoVbaIMTp 9z9DHb6X0DefKG/tduVUg== X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51043 Archived-At: Am Montag, 28. Januar 2008 20:31 schrieb Eli Zaretskii: > > From: Sven Joachim > > Date: Mon, 28 Jan 2008 19:05:41 +0100 > > > > > =E2=80=A2 How can i increase the limit? > > > > Use a 64-bit system. > > Yes, that's the only practical way, sans splitting the file outside of > Emacs. > > > > =E2=80=A2 is there a general solution to work with files (elisp) with= out > > > actually loading the whole file? > > > > Not really, since visiting a file reads all of it into an Emacs buffer. > > The problem is not with the buffer size per se, it's with the fact > that Emacs needs to be able to address each byte of the file's text > with an Emacs integer data type, which is 29 bit wide on 32-bit > machines. > What about a large-text-mode: sed reads chunks of text in, one by one, letting Emacs forget the rest. Than only the line-no matters, sent to sed. Andreas R=C3=B6hler