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:09:36 +0200 Message-ID: <83a61nor5r.fsf@gnu.org> References: <20230208190819.z7xwgxm5gpbzmjrz.ref@Ergus> <20230208190819.z7xwgxm5gpbzmjrz@Ergus> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35110"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 08 21:10:11 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 1pPqlf-0008yj-5i for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Feb 2023 21:10:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPqkr-0004v6-Uq; Wed, 08 Feb 2023 15:09:21 -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 1pPqkq-0004u9-P4 for emacs-devel@gnu.org; Wed, 08 Feb 2023 15:09:20 -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 1pPqkp-0007S6-WA; Wed, 08 Feb 2023 15:09:20 -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=wFlMrv02LVeIjCr6GOdHzTKD5h7Y2tX5QDaTJOrIgjQ=; b=Xyxl08Lnq9WJ qSf3RHOEGZ7nFv59WQGEW6s7szMP37+PSrcl7lspWXmhtYIqwaj4gmNDBPMvSdkwTe4bHEY1imnG+ sqUFmN6FEhWBzjcAflXir19772gZaBfcPROzAENHTtEG1LMB995BUINgvR4vaVEMlygi2AmkdYzk4 /htQnjq6Rp+nrpjIzqUDfDgk3SVb4jgk3Y93xq/iQVMv2SYjSXK7o0hOjwF9Wr5hUXhLFBxZH8AXV kAogaClHEWgtRz8g2x9uGSaqNfy+dwYl8Ql0pKsWeNt3a4dQvxLgTSVuT9m2b0hdiqgxkfrz1eMJE zEjlOlKfef1xSIlCLFzuKQ==; 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 1pPqkn-0004Zv-0h; Wed, 08 Feb 2023 15:09:19 -0500 In-Reply-To: <20230208190819.z7xwgxm5gpbzmjrz@Ergus> (message from Ergus on Wed, 8 Feb 2023 20:08:19 +0100) 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:303056 Archived-At: > Date: Wed, 8 Feb 2023 20:08:19 +0100 > From: Ergus > Cc: Eli Zaretskii > > 3) Now, in spite of it is much better, still there is a significant lag > (compared with GNU/Linux) which concerns me about whats going on with > the GC. > > Now I get in the profiler-report: > > 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).