From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: master c916f471caa 2/3: Add tree-sitter performance note Date: Thu, 14 Sep 2023 09:43:04 +0800 Message-ID: <87bke54jiv.fsf@yahoo.com> References: <169465413983.20865.4955758569389021990@vcs2.savannah.gnu.org> <20230914011540.707B4C04DAF@vcs2.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22474"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Yuan Fu To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 14 03:44:22 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 1qgbP4-0005fX-DW for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Sep 2023 03:44:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgbO7-0003Ke-11; Wed, 13 Sep 2023 21:43:23 -0400 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 1qgbO4-0003KS-La for emacs-devel@gnu.org; Wed, 13 Sep 2023 21:43:20 -0400 Original-Received: from sonic317-33.consmr.mail.ne1.yahoo.com ([66.163.184.44]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgbO2-00020Q-NO for emacs-devel@gnu.org; Wed, 13 Sep 2023 21:43:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1694655796; bh=usSTwE4tuu4ZhGxBlB3jTigEtA05GBlNwgWe4Bwjlho=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=GmX6KmQ+gt13sdvb0VECwN/zSOlLpwH3l7sKkLP2sGPjUi/NTKXChwUeGSbv24Xgqgw+6fxpEnmCFjmV1THcGV5RDHs1opUlCtKPe/QdPYrry3aPAM4P3H2LM3o9WtDIZcnu8yDbnoERT9Xmrj2y7CD9GlDC9GCc7a54CYAAomfocPjsqVSO1yKaPnhM9DEyCcwX+wWnTmqHD2TkemaldsysIjSdfSH1psgkEXCTCHoVoTTYoF9ZgYc8DzmpaJbV3dKZQPgO33ksEgFf2sTiSuN9cGiy1g61WheoC8rQDE+QS30+fZ7gw3veAjottXUxUCnPs630Mr4kotq6CK5q3A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1694655796; bh=8PqUTCfTXpg6hveRIuOZeVsfWk+J5X8jK2qewnRJsL7=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=js6fDa5AmxbOaJnDl8OfRna2NhMVLWrnsopFTKHBbQmNnnnK4FuVcd+7iYNDHpk3IMp0lO6hGGzLgqcplg1+UNVOJrGSbCIYLxKc+LD1r2MpXRvQ7OZa6Pl6na2WI+m1Y0fS984/7IQGpnUHZ81btQn7z0aLdxYBw8hZ3E9DUwpkNUE2YN5ckHArwyeXYfL6AdD+NG/so5LGfWVMVs4jxBaAu1T3QQHhbooWmx3SEh1KzWkTyNvvaaPUT900AL4XXT2jnRO/9WyCDlbwLIlGoZwHOJ3GnnHoKlKQr+FI43E7ljK0MeArafROZkpdjr9+BkgOZSenEyrJh9of13fZlg== X-YMail-OSG: OwcEWIUVM1m2izbkhQOXyhZllOgJiAZ6vMANgGr4e_Rgh4faBydIgvr_H6rWlJa YJd0cs5SdXNBTqn.fzLYIgtKTo71dXLMN4XUBzbTQo7AvZydIGcECwkYk_PWA9Vsj0p798vqpaBH ilLfPocsf_5Z2EiItebMX_G1aw41LNLnNQT3IAyyRsNvbW7gfaya3clPgnNDGDL.s6qoZuRK37EI Iax9dD1w1XLPWVc_vEfWVU_0xJ19v0q.OrpJEpoDT39ANzZhUla69amgPK1syFfgVOAmIfr2bsbr e8ksQO_IkGX6Wr4ByqUbJJbubO2FsmiNB6f.ni.3IA_RijE8K_rj3TX1NfRnuVgb8Rb_SRb.B0AA V43J6OcExx4uJKShpadmiv99YrxCHdT7EAX7qVlsXM.d0eLtbIeODuchjIY7GJrm4oYz8EKtoHqq sg9mwZ_oC.ktEWtbM72Xl0GWX5fXlwaygfByr98Rf41T8yGmkkQ3Yoby1EN7x.u3fBTPRSI2YeF. 2YfNB5DwDdNbVyTjKQNNBQ5omBcsowzHxccrPj06BC_H_fYJ_HYhXAsQgXArnjouS6Dd3_.ITrYA 8OOd65AVlEka9xMO_nl_53z.DfyZt.OKz11BLwFKrdT0ApHC3NWRm_5.65yrdcsvz5sif6IH8Tlv nWiZVl0iQr1fT_xL2JvSqRchb3829i89kcpJQpy.GpHJwlEL7uEAn2jO1d8x8CDQudHtMD_V999S URBLdf2P_Zdv6eiUqe_aiX2p._KrChAuYVG9izsT7ZoA0HQdORG9.PCohPGEIlo5j_GBjS8asrk4 gOp9ptQFdUYLaROYJb3y13uTIBtDHyhl72zzFBAgoE X-Sonic-MF: X-Sonic-ID: adb4f6a8-5628-4358-bd09-76c1c9f3932f Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Thu, 14 Sep 2023 01:43:16 +0000 Original-Received: by hermes--production-sg3-55c667b499-f87gm (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 9e2d35ee5d90d60421a724bec383ffc0; Thu, 14 Sep 2023 01:43:11 +0000 (UTC) In-Reply-To: <20230914011540.707B4C04DAF@vcs2.savannah.gnu.org> (Yuan Fu's message of "Wed, 13 Sep 2023 21:15:40 -0400 (EDT)") X-Mailer: WebService/1.1.21797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.44; envelope-from=luangruo@yahoo.com; helo=sonic317-33.consmr.mail.ne1.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:310560 Archived-At: Yuan Fu writes: > branch: master > commit c916f471caada4eb9a4b7f9f53925a71525c694a > Author: Yuan Fu > Commit: Yuan Fu > > Add tree-sitter performance note > --- > admin/notes/tree-sitter/performance | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/admin/notes/tree-sitter/performance b/admin/notes/tree-sitte= r/performance > new file mode 100644 > index 00000000000..0e8351403af > --- /dev/null > +++ b/admin/notes/tree-sitter/performance > @@ -0,0 +1,12 @@ > +TREE-SITTER PERFORMANCE NOTES -*- org -*- > + > +* Facts > + > +Incremental parsing of a few characters worth of edit usually takes > +less than 0.1ms. If it takes longer than that, something is wrong. Ther= e=E2=80=99s one time where I found tree-sitter-c takes ~30ms to incremental= parse. Updating to the latest version of tree-sitter-c solves it, so I did= n=E2=80=99t investigate further. Shouldn't this paragraph be filled to 72 columns, as you have done in the next one?