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:07:33 +0300 Message-ID: <83lerxvfnu.fsf@gnu.org> References: <83czdbwjfr.fsf@gnu.org> <837d3jvu9f.fsf@gnu.org> <83sfm6veqa.fsf@gnu.org> <83pmhavdim.fsf@gnu.org> <83o7wuva9o.fsf@gnu.org> <83mtceupbx.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19067"; 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:09:12 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 1oLN6l-0004nf-PG for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Aug 2022 13:09:11 +0200 Original-Received: from localhost ([::1]:33252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLN6k-0000Kn-Ol for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Aug 2022 07:09:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLN5O-0007a0-8G for emacs-devel@gnu.org; Tue, 09 Aug 2022 07:07:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37286) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLN5N-0008VO-Hf; Tue, 09 Aug 2022 07:07:45 -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=Tpoy1aXli/oYDZk8RjM95yxwelwXPhKgSHaqxOsIQi0=; b=q/a7R3Yida1K mhIh1HaYR7/c2wxDOaVoVOiRBXjtKhyijxPJ5KY/N8OVH8ZogohgZjl7a6RarBi5n+mIhmMBVuyCy tUqsX5+D5ZSuEWHLaWhRnFl4/dOMRIvVYbZytIiKnTEOCpfDbNaNiDmS9LOwlvTe2X3sWvTjjD8p3 Ix8B5XEaEch1afAgVXdwVjV1dVlWIlbHVxUamO9Gx94yOUE5ZJsIczKEBb0f2HlKt77ast2Av4p9d hjA2zudAKVt364sGMcsucx+QG6KQDWcwdbB4uwTt1ILPaDvZsppqk9xuUxW15/eDbt1zq6HYz2cKy rThS2ln8GOTA42HnvcaYWQ==; Original-Received: from [87.69.77.57] (port=1213 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 1oLN5N-0003B2-0V; Tue, 09 Aug 2022 07:07:45 -0400 In-Reply-To: (message from Alan Mackenzie on Tue, 9 Aug 2022 08:00:16 +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:293298 Archived-At: > 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?