From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Newsgroups: gmane.emacs.help Subject: Re: Handling large files with Emacs Date: Wed, 24 Oct 2012 19:09:20 +0000 (UTC) Message-ID: References: <87k3uhf0gc.fsf@panzer.v.cablecom.net> <87a9vdeyrf.fsf@panzer.v.cablecom.net> <83objsc47x.fsf@gnu.org> <876260cji8.fsf@gmail.com> <83fw53bur8.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1351105786 30794 80.91.229.3 (24 Oct 2012 19:09:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Oct 2012 19:09:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 24 21:09:53 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TR6Kt-00030B-NC for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Oct 2012 21:09:51 +0200 Original-Received: from localhost ([::1]:33604 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR6Kk-000678-GA for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Oct 2012 15:09:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR6Kd-00065Q-2j for help-gnu-emacs@gnu.org; Wed, 24 Oct 2012 15:09:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TR6Kc-0003Q9-1d for help-gnu-emacs@gnu.org; Wed, 24 Oct 2012 15:09:35 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:56409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR6Kb-0003Q1-RH for help-gnu-emacs@gnu.org; Wed, 24 Oct 2012 15:09:33 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TR6Kg-0002pG-C5 for help-gnu-emacs@gnu.org; Wed, 24 Oct 2012 21:09:38 +0200 Original-Received: from 84-236-127-42.pool.digikabel.hu ([84.236.127.42]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Oct 2012 21:09:38 +0200 Original-Received: from adatgyujto by 84-236-127-42.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Oct 2012 21:09:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 84.236.127.42 (Opera/9.80 (Windows NT 6.1; U; IBM EVV/3.0/EAK01AG9/LE; en) Presto/2.10.289 Version/12.02) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87403 Archived-At: Eli Zaretskii gnu.org> writes: > > > > BTW, why is it obsolete? Does it mean it's unnecessary and the > > size of the buffer should not be a problem? > > Yes. > My other tip is long lines cause problems. SQL dumps have usually really long lines (the one below has lines with 1 million characters). Here's as a testcase a dump from Wikipedia which is a 16MB download and it extracts to a 64MB sql file: http://dumps.wikimedia.org/enwiki/20110901/enwiki-20110901-category.sql.gz If I extract it, open it in emacs and try to scroll in the file here and there then emacs freezes for a minute or longer. Actually with the above file I had to kill emacs, because it did not respond to anything after I did some random scrolling in the file, jumping to the end and then scrolling backwards, etc. I tried it with -Q (emacs 24.1.1 on Windows).