From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Visher Newsgroups: gmane.emacs.help Subject: Re: Poor Performance w/ Long Files Date: Thu, 20 Aug 2009 08:16:32 -0400 Message-ID: References: <87skfnwdkv.fsf@galatea.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250770653 32342 80.91.229.12 (20 Aug 2009 12:17:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Aug 2009 12:17:33 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Pascal J. Bourguignon" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 20 14:17:26 2009 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 1Me6a6-0007YW-89 for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Aug 2009 14:17:26 +0200 Original-Received: from localhost ([127.0.0.1]:48464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Me6a5-0007AR-LH for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Aug 2009 08:17:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Me6Ze-00072L-4N for help-gnu-emacs@gnu.org; Thu, 20 Aug 2009 08:16:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Me6ZZ-0006fb-4L for help-gnu-emacs@gnu.org; Thu, 20 Aug 2009 08:16:57 -0400 Original-Received: from [199.232.76.173] (port=47584 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Me6ZY-0006f7-U7 for help-gnu-emacs@gnu.org; Thu, 20 Aug 2009 08:16:52 -0400 Original-Received: from mail-yw0-f190.google.com ([209.85.211.190]:51988) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Me6ZY-0001vc-Jy for help-gnu-emacs@gnu.org; Thu, 20 Aug 2009 08:16:52 -0400 Original-Received: by ywh28 with SMTP id 28so7165574ywh.27 for ; Thu, 20 Aug 2009 05:16:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Sr5SUKD80aekptwTiVlIlNsnjqxdSwB3rKsGEdAJoLU=; b=CWFcvikNYlXVvKbf7CeZrQL0SsoSiETGESyN2SpKfjqLYozEFzA7FbSlOd5doEmr/L gUf/R/Q8VO78kVgKJouZq7jJfYDxex1CWfWba4BhvLJmb98XN33TdOilys13UqsIsOIa IwqGGnvYcLltwAIRrsba3JA63JWWFOa18ct9g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=wLXRrJVoQNyOWj/MfGXcq62hO6I3rhSq3FI1Y0BrMbG8BN9XCvRtzEw3D+usoqNhN0 t+4wJdcSOMYpe4nZ7iYxvpgtwLKUBMjxwlYhoHGygdLMccoOM6WZucYXF54UKtSBzZ5q KYbdV0kpxEJIV/WndpZ8pOLQKvrJeb7Htooio= Original-Received: by 10.100.56.26 with SMTP id e26mr6177704ana.162.1250770612099; Thu, 20 Aug 2009 05:16:52 -0700 (PDT) In-Reply-To: <87skfnwdkv.fsf@galatea.local> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:67295 Archived-At: On Wed, Aug 19, 2009 at 8:09 PM, Pascal J. Bourguignon wrote: > Tim Visher writes: > >> Hello Everyone, >> >> I work with many large files (+10,000,000 ASCII characters) at work >> and I've noticed that Emacs does extremely poorly with those files. I >> have taken to opening them up in something like Notepad++ to look at >> them and editing the programs that operate on them in Emacs. I'd love >> to be able to just stick with Emacs. >> >> Is there something that I just haven't set yet or does Emacs have >> trouble with large files? > > Perhaps you could disable some emacs options that might take time, > like font-locking. Basically, if you edit this files in fundamental-mode, > with truncate-line turned off with C-u 1 M-x toggle-truncate-lines RET and > with font-locking turned off with C-u -1 M-x font-lock-mode RET, > it should go faster. This fixed things. I hadn't even thought of it but the file I was opening tried to open in tcl and pabbrev modes and that's what seems to have caused the slowdown. Putting thing back into Fundamental with pabbrev off quickened things right up. Is there a way to manually force a file to open in a particular mode without setting an auto-mode in .emacs? On Wed, Aug 19, 2009 at 4:18 PM, Eli Zaretskii wrote: >> From: Tim Visher >> Date: Wed, 19 Aug 2009 16:12:54 -0400 >> >> I work with many large files (+10,000,000 ASCII characters) at work >> and I've noticed that Emacs does extremely poorly with those files. I >> have taken to opening them up in something like Notepad++ to look at >> them and editing the programs that operate on them in Emacs. I'd love >> to be able to just stick with Emacs. >> >> Is there something that I just haven't set yet or does Emacs have >> trouble with large files? > > What file? is there a way to get hold of an example? Unfortunately I can't give a sample out. However it doesn't seem to be germane anymore anyway. > And what version of Emacs? 22.3 Thanks everyone. -- In Christ, Timmy V. http://burningones.com/ http://five.sentenc.es/ - Spend less time on e-mail