From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Poor Performance w/ Long Files Date: Thu, 20 Aug 2009 02:52:59 +0200 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: quoted-printable X-Trace: ger.gmane.org 1250729630 31271 80.91.229.12 (20 Aug 2009 00:53:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Aug 2009 00:53:50 +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 02:53:43 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 1MdvuR-0002W4-3q for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Aug 2009 02:53:43 +0200 Original-Received: from localhost ([127.0.0.1]:40735 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdvuQ-0005jk-KO for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Aug 2009 20:53:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mdvu8-0005jV-Us for help-gnu-emacs@gnu.org; Wed, 19 Aug 2009 20:53:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mdvu4-0005iM-Ef for help-gnu-emacs@gnu.org; Wed, 19 Aug 2009 20:53:24 -0400 Original-Received: from [199.232.76.173] (port=36029 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mdvu4-0005iJ-BW for help-gnu-emacs@gnu.org; Wed, 19 Aug 2009 20:53:20 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.251]:59080) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mdvu3-00069C-On for help-gnu-emacs@gnu.org; Wed, 19 Aug 2009 20:53:19 -0400 Original-Received: by an-out-0708.google.com with SMTP id b6so2152091ana.21 for ; Wed, 19 Aug 2009 17:53:19 -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=RP0YIDzOAXoApNAjD9CMjM2MK3UJx/sn2H39NaxSOXA=; b=Sf2db7sIjUAdP5s8yTqD2lTPKZL7LTz6Nju9dM37g0MHgAY8p1sOef6JlHJk6AVs+O cFS4nlcdkM7tC3G5fEIEjgkaRvjyxWWdzOv9pfoY71C4KnQd+dNoGWtg4jUotVKuJ1Xn DSWTha1C6ZK3OBRWv1PvhOXAC4zb9Ml/32uZU= 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=a/1yNmUThqUPWaRyrx0sL4Y62Rs38tCr5obHajgAm6g1BqlFMFnr1t6Nsgev5vyXj5 GNdGQqmEt5Te7DxgHl9N6yK/kVx4+nawSEJGHWQuh5D3vovMBndwCs+5OJm/gNYNRc0E hf5Iio5jpg5UXQ1mKJz+oKkTgXJMMtcgESrdE= Original-Received: by 10.100.55.18 with SMTP id d18mr5608270ana.80.1250729599280; Wed, 19 Aug 2009 17:53:19 -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:67281 Archived-At: On Thu, Aug 20, 2009 at 2:09 AM, 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. =C2= =A0I >> have taken to opening them up in something like Notepad++ to look at >> them and editing the programs that operate on them in Emacs. =C2=A0I'd l= ove >> 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. =C2=A0Basically, if you edit this files in fundamental= -mode, > with truncate-line turned off with C-u 1 M-x toggle-truncate-lines RET an= d > with font-locking turned off with C-u -1 M-x font-lock-mode RET, > it should go faster. I think we recently got a bug report where the user was using fundamental-mode to edit a file with very long lines. That was very slow. If I remember correctly that depends on how the display engine in Emacs is organized. It searches for line ends. If I understand Stefan Monnier correctly this is something that can be cured and have a rather high priority. So if someone want to jump in and have enough knowledge to understand this it is probably welcome. (It might be a difficult problem.)