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: Some performance questions. Date: Wed, 08 Feb 2023 22:15:11 +0200 Message-ID: <838rh7oqwg.fsf@gnu.org> References: <20230208190819.z7xwgxm5gpbzmjrz.ref@Ergus> <20230208190819.z7xwgxm5gpbzmjrz@Ergus> <83a61nor5r.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20224"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: spacibba@aol.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 08 21:15:36 2023 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 1pPqqu-00052r-AE for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Feb 2023 21:15:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPqqG-0007gq-9N; Wed, 08 Feb 2023 15:14:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPqqE-0007gS-Fn for emacs-devel@gnu.org; Wed, 08 Feb 2023 15:14:54 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPqqE-0000bH-7D; Wed, 08 Feb 2023 15:14:54 -0500 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=wdq53cy+QCwgjyEVZQ1GIa4eF85Rzj2OcTNQVMPHGrM=; b=pND+kqGWri8m RmV9vVrIZy4UQK57X7U1p26SMf9G/if5niFrgmbA2/kTGD84YsVnmm2wOmHNsbPxbPUwrSznkG0UV UJHnkzUDL/Z8BCm7HHbwOA/RI8MhRxoChyzqlkcrn7GUaBKgDb4wIucMCj4d2JFLBq0oZpXBWKts/ sUWP9zATxhmPEEyL4SY8IrjLATVRNEKOUVX4rZAEZW/0WW5TpBiND95BZ8acgOugKgES+vZrdrCda 58RrteQDhPWjUemjWrMefwtdZ1EbWjf7jmJR9xn/yEyvkus9Hzk6vyxQtCW2pnUWbh8kXBPVNWU6T /821ed2DwYOG6x8tOnTEAw==; Original-Received: from [87.69.77.57] (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 1pPqqD-0005Ck-K6; Wed, 08 Feb 2023 15:14:53 -0500 In-Reply-To: <83a61nor5r.fsf@gnu.org> (message from Eli Zaretskii on Wed, 08 Feb 2023 22:09:36 +0200) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303057 Archived-At: > Date: Wed, 08 Feb 2023 22:09:36 +0200 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > > 71 45% Automatic GC > > 68 43% redisplay_internal > > jit-lock-function > > ... > > font-lock-fontify-keywords-region > > > > 37 23% c-font-lock-declarations > > 20 12% c-font-lock-cut-off-declarators > > > > I have not observed such lags before on GNU/Linux, so some idea what I > > may be doing wrong? > > > > I know Eli uses MS-Windows frequently, so, any hint? > > Try using c-ts-mode instead (assuming this is Emacs 29 and it was > built with tree-sitter). And if you cannot use tree-sitter, then try this: (setq jit-lock-stealth-time 16) (setq jit-lock-defer-contextually t) (setq jit-lock-stealth-load 20)