From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: CC Mode with font-lock-maximum-decoration 2 Date: Tue, 09 Aug 2022 14:57:25 +0300 Message-ID: <838rnxvdcq.fsf@gnu.org> References: <837d3jvu9f.fsf@gnu.org> <83sfm6veqa.fsf@gnu.org> <83pmhavdim.fsf@gnu.org> <83o7wuva9o.fsf@gnu.org> <83mtceupbx.fsf@gnu.org> <83lerxvfnu.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21914"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 09 13:58:34 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oLNsX-0005ZR-Uw for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Aug 2022 13:58:34 +0200 Original-Received: from localhost ([::1]:36808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLNsW-00008Q-Uq for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Aug 2022 07:58:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLNrd-0007sK-3Y for emacs-devel@gnu.org; Tue, 09 Aug 2022 07:57:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLNrc-0000lB-79; Tue, 09 Aug 2022 07:57:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=l0A1yaUBgChiH6KsmVFJhvWCg0XS3AkoZglBz23kGzA=; b=WlFSK2ww01uZ O1cZPc2wxvBeDbz8Q3DnpHRbmlMOyot3/+QyFcNPZkqxS6ULbsxIxVsaXTRH68Y41LBlHo6OppLY2 hFWoKUN2M53MoC6uoPzq2V2uy5v8KU/DN1nsvQoD1osbnrldDeFLrVGzhIDjn9xiQi+rTG0SlOZYb JtzwyB7NVc93Y/peD9SE7vB1hvtGqB89yct1opF8y61uvXf1SpM6t0STPyGXsXP76niLDFua41rvU yMeuKTOxMjmEz0KELacuTbRBmMHHkXlDuwmA+WMqnoz1htJ4ow8AJWztnX0S2h01v0khqAGo31aIP SODgMNtjLVWYw8A2+yJYIQ==; Original-Received: from [87.69.77.57] (port=4245 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLNrb-0000HM-M4; Tue, 09 Aug 2022 07:57:36 -0400 In-Reply-To: (message from Alan Mackenzie on Tue, 9 Aug 2022 11:24:20 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:293303 Archived-At: > Date: Tue, 9 Aug 2022 11:24:20 +0000 > Cc: emacs-devel@gnu.org > From: Alan Mackenzie > > Hello, Eli. > > On Tue, Aug 09, 2022 at 14:07:33 +0300, Eli Zaretskii wrote: > > > Date: Tue, 9 Aug 2022 08:00:16 +0000 > > > Cc: emacs-devel@gnu.org > > > From: Alan Mackenzie > > > > > > > Then what is the importance of these measurements of yours? > > > > > > They show that an attempt to speed up CC Mode/2 should be concentrating > > > > > on the code which isn't fontification code. > > > > > Please elaborate on this conclusion, because I don't think I > > > > understand how you arrived at it, based on your measurements. With > > > > the default value of font-lock-maximum-decoration, the fontifications > > > > are also very slow, relatively to other modes. > > > > I mean CC Mode with font-lock-maximum-decoration = 2, particularly. The > > > fontification in this setup is not slow (72% of Emacs Lisp Mode's > > > speed). The setup as a whole is not fast enough. Therefore to speed it > > > up, fontification is not the aspect to concentrate on. > > > But if we will never recommend using level 2, those conclusions are > > again of no practical value for our users. Right? > > I don't agree. If there is some place in our documentation to do it, > then we should recommend level 2 for those, like you, who want rapid > response, and level 3 for those, like me, who want accurate > fontification. It's a simple (or complicated) user choice. We are not talking about my personal customizations, we are talking about what CC Mode does by default. If we'd changed the default to be level 2 for CC Mode, I could understand your line of reasoning. But since you don't think this should be the default, I say what CC Mode does at level 2 is not of practical importance for making CC Mode fast enough. > You have stated that CC Mode with level 2 is not fast enough. I intend > to make this (what I call CC Mode/2) faster. That factoid doesn't do anything for making CC Mode faster for our users, even if you assume that I personally will use that level.