From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: Making font-lock handle long lines better Date: Fri, 10 Feb 2017 16:57:43 +0100 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486742323 8192 195.159.176.226 (10 Feb 2017 15:58:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2017 15:58:43 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Ryan B Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 10 16:58:32 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccDaa-0001Ef-Ko for ged-emacs-devel@m.gmane.org; Fri, 10 Feb 2017 16:58:24 +0100 Original-Received: from localhost ([::1]:44564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccDag-0002Wy-8k for ged-emacs-devel@m.gmane.org; Fri, 10 Feb 2017 10:58:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccDa7-0002Wg-Py for emacs-devel@gnu.org; Fri, 10 Feb 2017 10:57:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccDa3-0002Wb-TM for emacs-devel@gnu.org; Fri, 10 Feb 2017 10:57:55 -0500 Original-Received: from smtp.outgoing.loopia.se ([194.9.95.112]:42875) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ccDa3-0002Sb-LP for emacs-devel@gnu.org; Fri, 10 Feb 2017 10:57:51 -0500 Original-Received: from s554.loopia.se (localhost [127.0.0.1]) by s554.loopia.se (Postfix) with ESMTP id 182BB1BCD2A0 for ; Fri, 10 Feb 2017 16:57:46 +0100 (CET) Original-Received: from s498.loopia.se (unknown [172.21.200.96]) by s554.loopia.se (Postfix) with ESMTP id E9A1A94C0F6; Fri, 10 Feb 2017 16:57:45 +0100 (CET) Original-Received: from s405.loopia.se (unknown [172.21.200.105]) by s498.loopia.se (Postfix) with ESMTP id E5E2F46C357; Fri, 10 Feb 2017 16:57:45 +0100 (CET) X-Virus-Scanned: amavisd-new at amavis.loopia.se Original-Received: from s500.loopia.se ([172.21.200.105]) by s405.loopia.se (s405.loopia.se [172.21.200.135]) (amavisd-new, port 10024) with LMTP id ecowim3K3lXu; Fri, 10 Feb 2017 16:57:43 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: joakim.verona@chimeslab.se X-Loopia-Originating-IP: 81.170.223.63 Original-Received: from exodia.verona.se (h-223-63.a149.priv.bahnhof.se [81.170.223.63]) (Authenticated sender: joakim.verona@chimeslab.se) by s500.loopia.se (Postfix) with ESMTPSA id C1D89AB9F33; Fri, 10 Feb 2017 16:57:43 +0100 (CET) In-Reply-To: (Ryan B.'s message of "Fri, 10 Feb 2017 07:44:15 -0800") X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 194.9.95.112 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212209 Archived-At: Ryan B writes: > hi all! it seems like it's been a known issue for a while that font-lock is slow on very long lines. i've tried lots of optimizations - jit-lock/lazy-lock, font-lock-maximum-decoration, etc. - but even on modern hardware, fontifying still hangs my emacs for 5-10s on > long lines, e.g. 10k-20k characters, whenever they appear. > > i'm thinking of adding an opt-in line length limit to font-lock-mode, after which it would stop fontifying, evaluating regexps, etc. within each line. i'd love to hear opinions on whether that makes sense, and whether you might consider accepting it into trunk. As a user, I would appreciate this feature. I dont know if its feasible to implement it though. > > thanks in advance! -- Joakim Verona joakim@verona.se