From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Some performance questions. Date: Wed, 08 Feb 2023 21:56:31 +0100 Message-ID: References: <20230208190819.z7xwgxm5gpbzmjrz.ref@Ergus> <20230208190819.z7xwgxm5gpbzmjrz@Ergus> <83a61nor5r.fsf@gnu.org> <838rh7oqwg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=----CYS0YMM5XL8STP47DTNHEHK2K0TF7O Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32437"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 08 21:57:52 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 1pPrVo-0008F7-Iu for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Feb 2023 21:57:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPrUs-0000ta-HU; Wed, 08 Feb 2023 15:56:54 -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 1pPrUq-0000t8-Hx for emacs-devel@gnu.org; Wed, 08 Feb 2023 15:56:52 -0500 Original-Received: from sonic317-26.consmr.mail.bf2.yahoo.com ([74.6.129.81]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPrUm-0003Zw-4i for emacs-devel@gnu.org; Wed, 08 Feb 2023 15:56:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1675889804; bh=pt5vMsr8YomMVtZT4sBO+aowGxq9NgTZv+xuckXx+YM=; h=Date:From:To:CC:Subject:In-Reply-To:References:From:Subject:Reply-To; b=TmLLSin43d3tht1ikF6KoRNneY/z+xYV/m3MgSisBFP/v1CxG9CyVkq8m7eCtY4X+Va4R9Qo0Wq9xOD1EY0LV+IJV5oppnhlmJSohhewxzBYGyD2H07I9vREVUu8azPTSqgnlFFC4LmTRfYsemgMuINpFUG6yoPQYMv7vN/syuu1J6w8UxEiUjID92YbIpC/sfzUpc994QMChguzsL5NnOsmchL/F7T/PaNcn8pxrCrulwS59HwKBTK9dCP04kSxFXW9j3mNQxefvRfDJAU8UD9Rdtz6fsWRwIMzTaNE/ZnyZCyT3mezgt04kiJrbuqADou9cf9KN0ZTwwUt2GpeNA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1675889804; bh=0B7MwZkrF96swbw0/bxUEYtjBVMmKd0U24zv5jvIW+Q=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=W4iDUm/Ic/Q9frw+w3wpW5qJW5lVdZzt1JcwwBOGIFGl/G5seGTbDBhyiiq/8UUmJhpwenaiHD8VFLkKVj5Ag1TPWZF6O437oGRMUPUUOiVtiX4DsS9bq2x1fvk1sUVVcS9K7mrIapd+2BRC4AH4hzAbaDsiVhDKkgK4mm+CNI0z8TtGllmyxkNKUBP4yD2PSnH878bPjVcDQHJORC9CEUC6DmM6kqno3pYh3EW00tQN2V9+EX9GuX+4OV34iK+EPBWLScbaq9N7ytBfRiIY/pEx8BVeIysv8/CeQynZay26G2Y73QKCrvYqkxipZ7P4c5vrux5dKqfYiFRR6720Vg== X-YMail-OSG: tCBl.ZUVM1lJmwP25VssYYsEHmM7mzWdelYyH2yz6lupv40CbK._G4M9QM2IZ7C rhVcPN91T.5fwFVDMyf0UfBQkEmR0uJ22bjZ_EdJ7rBrzvmmbsiRjZELxA4EZmz8hY9hmuU6YOtU aDOOjiJP5xearpsFpivOepd3.Qo6913bnx1ZqvgMqa5o8pla2YcFNUk6ApQ2vygedO4LKiv2sLcD Ffv4NcEecMfIX3yvjd3RUzEI3GbwWB84J3lqzbKpIDY2koekQ1n.Kq17vdvB6MGVfXG_zoxRqfcI B0YEqK4EC8ainhlw4PWvAaasm_JQsaQqvdRrfmya6A1aEAd3W4utnPBpxIWa55_WDFtIK23.84ga ECXNa_S0IoMIPtEsXC0duWkfxyTou0ZNCzT6JsggYaltPuJcM9dyMad1s7XLIg98B2kqTV9hLb9X 9DjABZQzI6yGFbECigO97Q27vTMxr6fbRXGwi4f6r9jraujoSAwvVjmkCzrncnKVAetVG_d8HVOD BuYiETPGggMQL4NtJ0XcLI227ePAkWiQhpRTUhO9RpNbuRyj4GsmYjXd.OxcCOa0t9i8hiMqWQr5 7JDxE0Kmp.2xKxQrvX6T87AxXSiNvR0BpsulN3.fTqjr_6XyhxvSnJiuFWXyEBOwsPm44JV40Yp0 RdM855KrEhHu0xR_W5q_4FQfsuJZ2UewH8drqVVhPxNugiIB8LXcA.Fy4u3Jg9BBbN2bp.yEWxUJ _sAu5sZN84aeI2wYE4v_LgTboW1T_rKLqmmEqD0gjAszcKIkVxnQmgvFnaXnWqpO3b2gRqGJMIU2 TKESi.SSmug4Yc7pxGmZGusMfs8BYPmTb7PMpIEpoq X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.bf2.yahoo.com with HTTP; Wed, 8 Feb 2023 20:56:44 +0000 Original-Received: by hermes--production-ir2-65c64dfd66-hwhd6 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 4f1f69ede6fd35cff3ceb051293b4b9e; Wed, 08 Feb 2023 20:56:39 +0000 (UTC) In-Reply-To: <838rh7oqwg.fsf@gnu.org> X-Mailer: WebService/1.1.21161 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.129.81; envelope-from=spacibba@aol.com; helo=sonic317-26.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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:303058 Archived-At: ------CYS0YMM5XL8STP47DTNHEHK2K0TF7O Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Eli: Thanks for replying=2E Is the GC also improved by tree-sitter? Because it = is taking a significant part of the time, as you can see in my first mail= =2E Thanks,=20 Ergus On February 8, 2023 9:15:11 PM GMT+01:00, Eli Zaretskii w= rote: >> Date: Wed, 08 Feb 2023 22:09:36 +0200 >> From: Eli Zaretskii >> Cc: emacs-devel@gnu=2Eorg >>=20 >> > 71 45% Automatic GC >> > 68 43% redisplay_internal >> > jit-lock-function >> > =2E=2E=2E >> > font-lock-fontify-keywords-region >> >=20 >> > 37 23% c-font-lock-declarations >> > 20 12% c-font-lock-cut-off-declarators >> >=20 >> > I have not observed such lags before on GNU/Linux, so some idea what = I >> > may be doing wrong? >> >=20 >> > I know Eli uses MS-Windows frequently, so, any hint? >>=20 >> Try using c-ts-mode instead (assuming this is Emacs 29 and it was >> built with tree-sitter)=2E > >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) --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E ------CYS0YMM5XL8STP47DTNHEHK2K0TF7O Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi Eli:

Thanks for replyi= ng=2E Is the GC also improved by tree-sitter? Because it is taking a signif= icant=C2=A0 part of the time, as you can see in my first mail=2E

Tha= nks,
Ergus




On February 8, 2023 9:15:11 PM GMT+01:00, Eli Zaretskii <eliz@= gnu=2Eorg> wrote:
Date: Wed, 08 Feb 2023 22:09:36 +0200
From: Eli Zaretskii= <eliz@gnu=2Eorg>
Cc: emacs-devel@gnu=2Eorg

71 45% Automatic = GC
68 43% redisplay_internal
jit-lock-function
= =2E=2E=2E
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 so= me idea what I
may be doing wrong?

I know Eli uses MS-Windows fre= quently, so, any hint?

Try usin= g c-ts-mode instead (assuming this is Emacs 29 and it was
built with tre= e-sitter)=2E

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= )
--
Sent from my Android device with K-9 Mail=2E Please excus= e my brevity=2E
------CYS0YMM5XL8STP47DTNHEHK2K0TF7O--