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 12:24:10 -0400 Message-ID: References: <87skfnwdkv.fsf@galatea.local> <7cr5v64msw.fsf@pbourguignon.anevia.com> 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 1250785634 18066 80.91.229.12 (20 Aug 2009 16:27:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Aug 2009 16:27:14 +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 18:27:07 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 1MeATi-0003OX-Gk for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Aug 2009 18:27:07 +0200 Original-Received: from localhost ([127.0.0.1]:50158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeATh-0007fS-SL for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Aug 2009 12:27:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MeARI-00039Z-6Z for help-gnu-emacs@gnu.org; Thu, 20 Aug 2009 12:24:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MeARD-0002vN-Bw for help-gnu-emacs@gnu.org; Thu, 20 Aug 2009 12:24:35 -0400 Original-Received: from [199.232.76.173] (port=41483 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeARD-0002uk-0e for help-gnu-emacs@gnu.org; Thu, 20 Aug 2009 12:24:31 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.243]:56804) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MeARC-0002Vc-Nn for help-gnu-emacs@gnu.org; Thu, 20 Aug 2009 12:24:30 -0400 Original-Received: by an-out-0708.google.com with SMTP id b6so3978ana.21 for ; Thu, 20 Aug 2009 09:24:30 -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=GvBnPcW2JR7T9mXRe40fMV3TnJZNJUkEYPDt7SghiWw=; b=AZhJZ2yk32WXCqlLpzLlE6kG0Vu6Zzr6bPnNoj9DtnyBM1D8ox5MKX1zniaXsICvuO y+VxSx7OxphaGzYXU14Lo5nnBzC4bIJVzC/01rHwzj/soTNgzi6sipB/cBJxtdsYFeth 7CJR51kWq3jPPwCdCrMJSQpwTzqLQb//sCieA= 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=njxiOspGiOD9cBIge7jvkQABC1bCbLB3WhNz6TuSHPLcENAa1jJf99FGrSlalYlfuG ewlAMLd5Di+UREcQVypRl1exGSPRSzqAryd2VTcO7Q4iW2xfXbFXdVei9A6BLIXG4dR5 7YUwk7PFuT4XnSnvWoSHEPOm8BGzLDYNR//cM= Original-Received: by 10.101.57.14 with SMTP id j14mr8958427ank.105.1250785470181; Thu, 20 Aug 2009 09:24:30 -0700 (PDT) In-Reply-To: <7cr5v64msw.fsf@pbourguignon.anevia.com> 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:67305 Archived-At: On Thu, Aug 20, 2009 at 9:50 AM, Pascal J. Bourguignon wrote: > Tim Visher writes: > >> 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? > > M-x find-file-literally RET > > It's written right down at the bottom of the help page for find-file ;-) > > To visit a file without any kind of conversion and without > automatically choosing a major mode, use M-x find-file-literally. Thanks! I should've checked the manual myself first. :) -- In Christ, Timmy V. http://burningones.com/ http://five.sentenc.es/ - Spend less time on e-mail