From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: master c916f471caa 2/3: Add tree-sitter performance note Date: Wed, 13 Sep 2023 21:08:37 -0700 Message-ID: <5F1D1C9B-1CF3-4F77-BE30-605B23D89577@gmail.com> References: <169465413983.20865.4955758569389021990@vcs2.savannah.gnu.org> <20230914011540.707B4C04DAF@vcs2.savannah.gnu.org> <87bke54jiv.fsf@yahoo.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) 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="33081"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 14 06:09:57 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 1qgdfx-0008R2-No for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Sep 2023 06:09:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgdf0-0004qK-Qv; Thu, 14 Sep 2023 00:08:58 -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 1qgdez-0004pq-G8 for emacs-devel@gnu.org; Thu, 14 Sep 2023 00:08:57 -0400 Original-Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgdet-0006Kt-Fc for emacs-devel@gnu.org; Thu, 14 Sep 2023 00:08:52 -0400 Original-Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-6bf298ef1f5so302750a34.0 for ; Wed, 13 Sep 2023 21:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694664530; x=1695269330; darn=gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=xWKuGAWQkeBxFe26+jMZrULqkVVgjeQPhaxndZ+AfQA=; b=ffYEgRlnYw+jJ5/sqT1sDiZf1Y0eKyNFFYT0LSm6TuDXiBiFNBzw4Dfo+EQFxMzaUq ZPNQ9FZyQRtsD5wIeTUlNl74sg/vYuNu/BUxrE/MoT9u4a3SUUPmapzvvrtxBOBq3fhj jdFHIrL+D24NCG3XbEYJ5J6/A7G8/C3KnrcNd3cXt7WC4uhGbO4Ga8IajnpNX5meJK4d EjIrLdh9gZuR3+0Tol0ne+xnqgGDV06jKljZuIWVz1+8Khgcp+8K5TKu/zJzdahN+bKH 5jUnLXW/T/Qp+mxv/ZXxe8gPLggcQBGj+Mqv0K56oEvEdpdU0wcnpT1P2G0dA1+b0vBQ b6Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694664530; x=1695269330; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xWKuGAWQkeBxFe26+jMZrULqkVVgjeQPhaxndZ+AfQA=; b=Jyo+qJ/s71CFshRyiQKvoXia9OGcuNyTg52WYQEQ4rdCP/ilwlHtRR2HvSkkmGdP25 cl1ceK/uNM9Qc09M+Wob8TrNTuobXpm/s/Rwpae3fQlm2RbJx06B3uujDQ8e9LzJDUMP 2ZCM5BREsa5RFCkg0tpCh7VkVhqMt0BnC5bGYj8drb5jKh1ftXGEpRFGJzgET7Vp7SSy UXDUDouQdhXJmncSdPsIwGTWGWw6tNN62cmOSggH6XXyOpyDnYyOhc6+tImZlarPqFz1 /WJ16YcD7zMpR7gv2O2NMzfk8nvdh0USUWPyQ0afbgnMT0liu744tb32zgH1XIdPp87i 60kA== X-Gm-Message-State: AOJu0YwmAzPFP2z9W8RmWtvt2LjWJD/K61BKXAOL27CV/iKjPD+/1FZA JAvrLhWhRWX1v+gIfEZmfQYp6oXvY3o= X-Google-Smtp-Source: AGHT+IEYc7gdQwQaJzk1bTQlsHu94rLgUw+Z4ufARt9jCdjzrh2vD0eEPCbrl44frzxf6vUS9IbAaQ== X-Received: by 2002:a9d:77ca:0:b0:6bd:789:908f with SMTP id w10-20020a9d77ca000000b006bd0789908fmr5088986otl.18.1694664529719; Wed, 13 Sep 2023 21:08:49 -0700 (PDT) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id i4-20020aa787c4000000b0068fc6570874sm335817pfo.9.2023.09.13.21.08.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Sep 2023 21:08:49 -0700 (PDT) In-Reply-To: <87bke54jiv.fsf@yahoo.com> X-Mailer: Apple Mail (2.3731.700.6) Received-SPF: pass client-ip=2607:f8b0:4864:20::32c; envelope-from=casouri@gmail.com; helo=mail-ot1-x32c.google.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, 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:310562 Archived-At: > On Sep 13, 2023, at 6:43 PM, Po Lu wrote: >=20 > Yuan Fu writes: >=20 >> branch: master >> commit c916f471caada4eb9a4b7f9f53925a71525c694a >> Author: Yuan Fu >> Commit: Yuan Fu >>=20 >> Add tree-sitter performance note >> --- >> admin/notes/tree-sitter/performance | 12 ++++++++++++ >> 1 file changed, 12 insertions(+) >>=20 >> diff --git a/admin/notes/tree-sitter/performance = b/admin/notes/tree-sitter/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. = There=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 didn=E2=80=99t investigate further. >=20 > Shouldn't this paragraph be filled to 72 columns, as you have done in > the next one? Indeed it should. Thanks for catching this. I use word-wrap so filled = and unfilled paragraph look the same to me, apparently I forgot to fill = this paragraph. Yuan=