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 07:52:58 +0000 (UTC) Message-ID: References: <87k3uhf0gc.fsf@panzer.v.cablecom.net> <87a9vdeyrf.fsf@panzer.v.cablecom.net> <83objsc47x.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 1351065211 10140 80.91.229.3 (24 Oct 2012 07:53:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Oct 2012 07:53:31 +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 09:53:38 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 1TQvmU-0007gM-2h for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Oct 2012 09:53:38 +0200 Original-Received: from localhost ([::1]:57474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQvmM-0001Up-E7 for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Oct 2012 03:53:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQvmB-0001Ug-Rl for help-gnu-emacs@gnu.org; Wed, 24 Oct 2012 03:53:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQvm4-0003i1-LS for help-gnu-emacs@gnu.org; Wed, 24 Oct 2012 03:53:19 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:56903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQvm4-0003hp-FY for help-gnu-emacs@gnu.org; Wed, 24 Oct 2012 03:53:12 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TQvm9-0007Tz-D3 for help-gnu-emacs@gnu.org; Wed, 24 Oct 2012 09:53:17 +0200 Original-Received: from 188-143-25-41.pool.digikabel.hu ([188.143.25.41]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Oct 2012 09:53:17 +0200 Original-Received: from adatgyujto by 188-143-25-41.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Oct 2012 09:53:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 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: 188.143.25.41 (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:87387 Archived-At: Eli Zaretskii gnu.org> writes: > > That's ridiculously small. I routinely edit files approaching 500MB > without any problems, and that's on a 32-bit machine, whereas yours is > a 64-bit one. So something is seriously wrong with your system, or > maybe with the Emacs binary (but I can hardly believe it). > > I think it's because syntax highlight or something. When I try opening SQL dumps (say, 200MB) then Emacs grinds to a halt for a minute or so, and moving in the file is very slow even after that. If I don't use an .sql extension, so that the file is not opened in SQL mode then it's much better. So opening big files in fundamental mode works well, but if it has its own mode with syntax highlighting then it's pretty much unusable. I think Fab has a similar problem, because he opens the big file in Bibtex mode which also does it's own stuff, parsing the buffer with regexps for syntax highlighting, or something like this.