From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Handling large files with Emacs Date: Wed, 24 Oct 2012 20:16:12 +0200 Message-ID: <83hapjbus3.fsf@gnu.org> References: <87k3uhf0gc.fsf@panzer.v.cablecom.net> <87a9vdeyrf.fsf@panzer.v.cablecom.net> <83objsc47x.fsf@gnu.org> <876260cji8.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1351102593 623 80.91.229.3 (24 Oct 2012 18:16:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Oct 2012 18:16:33 +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 20:16:40 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 1TR5VN-0007Ac-FS for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Oct 2012 20:16:37 +0200 Original-Received: from localhost ([::1]:48215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR5VF-0004ud-Pe for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Oct 2012 14:16:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR5VA-0004uD-QF for help-gnu-emacs@gnu.org; Wed, 24 Oct 2012 14:16:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TR5V8-0003Qp-Jx for help-gnu-emacs@gnu.org; Wed, 24 Oct 2012 14:16:24 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:62687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR5V8-0003Qa-Bc for help-gnu-emacs@gnu.org; Wed, 24 Oct 2012 14:16:22 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MCE00D00T9IS900@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Wed, 24 Oct 2012 20:16:10 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MCE00CHFTEYVQX0@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Wed, 24 Oct 2012 20:16:10 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.169 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:87401 Archived-At: > From: Tom > Date: Wed, 24 Oct 2012 09:34:41 +0000 (UTC) > > Jambunathan K gmail.com> writes: > > > > > > 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. > > > > Have you experimented with `font-lock-maximum-size' together with > > `font-lock-support-mode'? > > > > Not yet, because I rarely need this and if I do then it's simpler to open > the file in fundamental mode. > > But the real question is if font locking is really the cuplrit then why > do we need to resort such special settings? We have fast enough computers > and AFAIK jit font-lock is the default, so it should not be a problem. And it isn't a problem, indeed, unless the mode in question does something pathological with its definition of font-lock-keywords etc. > Even if lisp perfomance cannot be improved much, font lock should be > clever enough to stay in the background and do stealth fontification > on remote parts of the large buffer only if the user is idle and only > in chunks, so it can yield to user input. Isn't this what JIT font-lock > is supposed to do in the first place? It is, and it does. But whenever you scroll to another portion in the buffer, JIT font-lock fontifies the displayed portion before displaying it, which could slow down redisplay, regardless of stealth.