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: Tree-sitter integration on feature/tree-sitter Date: Wed, 11 May 2022 23:10:40 -0700 Message-ID: <3781ADE6-C7F0-4745-827B-2B033A835C54@gmail.com> References: <87y1zabmbt.fsf@gmail.com> <5F186EBD-CD21-422B-8B4F-0D5424173334@gmail.com> <875ymdwf76.fsf@gmail.com> <011DA1A3-0FA8-4449-878A-FD6B336B0F1B@gmail.com> <8735hhw75p.fsf@gmail.com> <83czgks4ss.fsf@gnu.org> <87wnesuw63.fsf@gmail.com> <83pmkkqhft.fsf@gnu.org> <87tu9wukbt.fsf@gmail.com> <83ee10qbk7.fsf@gnu.org> <8F6A43D1-D1EA-4602-A245-627DB7960FC2@gmail.com> <054C830D-64FE-4347-85EF-054BF305DB49@gmail.com> <837d6rqqed.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) 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="9416"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yoavm448@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 12 08:12:53 2022 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 1np24D-0002MQ-OJ for ged-emacs-devel@m.gmane-mx.org; Thu, 12 May 2022 08:12:53 +0200 Original-Received: from localhost ([::1]:34930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1np24C-0006l0-Im for ged-emacs-devel@m.gmane-mx.org; Thu, 12 May 2022 02:12:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1np229-0005ku-Qn for emacs-devel@gnu.org; Thu, 12 May 2022 02:10:45 -0400 Original-Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]:40878) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1np228-000255-9m; Thu, 12 May 2022 02:10:45 -0400 Original-Received: by mail-pg1-x52c.google.com with SMTP id x12so3696108pgj.7; Wed, 11 May 2022 23:10:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=96IPTe1TEFh2nDrfZk7PLokVtsBcBrWB9gBb7fi6ozY=; b=nAPdAl1/W7sA1dtB/32iwjYWMbyvB8JlEqiqrUDCei9uO8IDMULkNfz8f+B4M7lURM Zr3Ele2Yi0vnjxTodCwKxvgqfse3GSDaPAdne0jmZYxIymIRog6CqzBoVjQQwEsNiaxU 9mYxlUJb0EBkaZ4sdmIbrJ6HW02AxRs1MbEsa9AXYOAj/uWQZR3S8sep9J0G3rJUyyjL ChQhjZidq7V2v1oYlVVjKNS9pN5dI91rLYj1yUYngwmfNg1mkT3eQnnoY5MSIxgPc/Pw B4Mb8Osb8cE7Ur6hI4vxfbIhlxMof4MaSCbV85aUOKz84Qpi1fKOIyvLaE4XH0PT9J3S C47Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=96IPTe1TEFh2nDrfZk7PLokVtsBcBrWB9gBb7fi6ozY=; b=Tq5F9CXhbhnrxluu0TEBtd3smpT8WwAawXmCVEQPFb2FqUZ42CtdKOq/xBD/SwTo6l RL3G3VNEV3pals/ZAtSdL7EIfJs5cXOS1bmcMYJQvvqP1UA/sUpxr2OYRxO1gB0VJ8gm nGvUAZOIixnsklURBGTAyPXjeYo4b8w7ghLSfhOtmVc44gUikB8R9ZdNPy29OHgIwdLy BdWrWvTC0NvWhjKTQ4ZnbVgf+KJv57Rvc1JWmqAQ+1KM3964MTYwTNxZODGXzuNKmvnN GqStV3+pk0yfQl5Z+oIvAhzLXJo9Lqx8OJ5py/ABvb2hYdIA49QwkuZCGIDzBCLBf6ph SImw== X-Gm-Message-State: AOAM532ZSjxEl1SU6+rYOSrofMHyfNQ00ua4mtc5sfZGYsCX3hG8alTd j+1dJVDrGh6dTr5maBoYCHP7rysa9j4coA== X-Google-Smtp-Source: ABdhPJxnpZ3h2aTEGotKHd6cI6Q6tv6gqfwZTn5yvBd0EFdm/BcldoAgJjjRZD9OsA7Mk1h9u1oC9Q== X-Received: by 2002:a63:6904:0:b0:3c6:5a3c:64bd with SMTP id e4-20020a636904000000b003c65a3c64bdmr6692720pgc.371.1652335842361; Wed, 11 May 2022 23:10:42 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c90:7cb3:8483:26c4:aa26]) by smtp.gmail.com with ESMTPSA id c2-20020a63ef42000000b003c14af50628sm932042pgk.64.2022.05.11.23.10.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 May 2022 23:10:41 -0700 (PDT) In-Reply-To: <837d6rqqed.fsf@gnu.org> X-Mailer: Apple Mail (2.3696.80.82.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::52c; envelope-from=casouri@gmail.com; helo=mail-pg1-x52c.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, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.devel:289664 Archived-At: > On May 11, 2022, at 10:19 PM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Wed, 11 May 2022 13:25:22 -0700 >> Cc: Yoav Marco , >> emacs-devel@gnu.org >>=20 >> font-lock: 88.28s -> 0.1997285067873303 / loop >> ^^^^^^^^^^^^^^^^^^ >> should be 0.09754696132596685 =20 >=20 > Still an order of magnitude speedup: from 100 msec to 16 msec. >=20 > Btw, how about adding this and other benchmarks to the test suite? We > may wish to use them later, to measure potential speedups or > slowdowns. Sure, could you give me some pointers to adding a timed test suite? I = don=E2=80=99t find anything like that in ERT, except :expensive-test. Yuan=