From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabian Ezequiel Gallina Newsgroups: gmane.emacs.devel Subject: Re: Emacs awfully slow on some files Date: Thu, 13 Aug 2009 19:09:10 -0300 Message-ID: <9de1a5ef0908131509j6ba1681ra1357a058d607382@mail.gmail.com> References: <7b501d5c0908101104v6fb4d56axe3f5ea28628d7fe3@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1250201382 32555 80.91.229.12 (13 Aug 2009 22:09:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Aug 2009 22:09:42 +0000 (UTC) Cc: Emacs-Devel devel , Deniz Dogan To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 14 00:09:34 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MbiUG-0001OC-Aq for ged-emacs-devel@m.gmane.org; Fri, 14 Aug 2009 00:09:32 +0200 Original-Received: from localhost ([127.0.0.1]:59801 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbiUF-0003eD-NI for ged-emacs-devel@m.gmane.org; Thu, 13 Aug 2009 18:09:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbiU2-0003VX-Tv for emacs-devel@gnu.org; Thu, 13 Aug 2009 18:09:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbiTx-0003Nj-MH for emacs-devel@gnu.org; Thu, 13 Aug 2009 18:09:17 -0400 Original-Received: from [199.232.76.173] (port=37770 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbiTx-0003NY-Ii for emacs-devel@gnu.org; Thu, 13 Aug 2009 18:09:13 -0400 Original-Received: from mail-fx0-f205.google.com ([209.85.220.205]:38487) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MbiTx-0000DX-0Z for emacs-devel@gnu.org; Thu, 13 Aug 2009 18:09:13 -0400 Original-Received: by fxm1 with SMTP id 1so840916fxm.31 for ; Thu, 13 Aug 2009 15:09:11 -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 :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=2K16SFnihAOpPqKeliPO/9axmt60ztjW/zw56FhMsUg=; b=iJAWmYci/hxgI3OqWdJPSEoqewao9mVntD5c3YcPcZiZNS3AoeahUNvgcOsT3w1mCd yhL7+aLs3GWitvxWiEUdH2GNO7TwZGcqPwi08GFXd46860jBbBhcbhI/OzGhirua+Kv3 7zRKIilOU6Op2NT3pEVy47M/1TSZALggCIBnk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ovj9gxLRc3EWIA80IFH8leWFuYS3arMSg46eSu8NggqNlS9I90glIKS0SN54IXJ6TX GF36fjE85N0KKV5itGYtBEZwaVaHTqnUY9LWjsWNHnO37h9ajCGJeZNUuLnGQ2nDOp4q ikQFqsnTGLKh88WZIomBwjAsLjRsH2snXK24c= Original-Received: by 10.86.241.28 with SMTP id o28mr938246fgh.65.1250201351020; Thu, 13 Aug 2009 15:09:11 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:114199 Archived-At: 2009/8/11 Stefan Monnier : >> I have a file which is 1 MB long and all of the content is on a single >> line. =A0Using Emacs on this file is pretty much impossible due to the >> super-sluggish behavior. =A0It's embarrassing. =A0Why is this? > > It's probably a combination of various pieces of code which make > incorrect assumptions about the expected line length. > >> Can it be fixed? > > Yes. > > Where should I start looking at in order to try fix this. I really would like to be able to use Emacs on ugly files too. >> This is with fundamental-mode, by the way. > > Good: in several other modes, I could argue that such a long line is > a bug, but fundamental-mode should cater to weird files. > Actually today I was editing to an SQL file which had really long lines and was slow as hell, there are several modes that should support very long lines without making Emacs that slow not only fundamental-mode. I guess this should be a priority thing to fix, I'll try to see if I can find some solution, unfortunately my C knowledge is not that good and I'm new to Emacs Lisp but I will give it a try and let you know if I can do some enhancement. > >> `forward-char' and `backward-char' are pretty much the only usable >> commands, even "C-h f" (describe-function) is extremely slow in >> this scenario. > > Please report a bug for it via M-x report-emacs-bug, and ideally include > some recipe (in case it depends on the actual content of the long line, > for example, or if it needs more than "emacs -Q" to reproduce). > > > =A0 =A0 =A0 =A0Stefan > Best Regards, --=20 Fabi=E1n E. Gallina