From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill Newsgroups: gmane.emacs.devel Subject: Re: CC Mode -> Tree sitter challenge Date: Sat, 05 Nov 2022 14:42:50 +0100 Message-ID: References: <87v8nu1mt1.fsf@thornhill.no> <83eduh4vcf.fsf@gnu.org> <87mt951r69.fsf@thornhill.no> <83tu3d34u7.fsf@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="13511"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, casouri@gmail.com, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 05 14:44:06 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 1orJSv-0003Mx-83 for ged-emacs-devel@m.gmane-mx.org; Sat, 05 Nov 2022 14:44:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orJSJ-0002xC-5y; Sat, 05 Nov 2022 09:43:27 -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 1orJSH-0002wy-G1 for emacs-devel@gnu.org; Sat, 05 Nov 2022 09:43:25 -0400 Original-Received: from out2.migadu.com ([2001:41d0:2:aacc::]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orJS7-0002sX-Fo; Sat, 05 Nov 2022 09:43:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1667655791; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kvqLQTMMrG3geW9w7fmsKCFXwGetLid5GHs+gnal4bk=; b=BivFycYALWRxnC5ZDpL/0I7SGvZS7iPfC1mXOPP4a82p1gvXoFLqslD9r+a7I1ON76lBAM x/fEnRSXAJ58mYG4EWX/j06PAFTKpcis6nZuFYtD1LG0eqHTPrf4ZbQ5ve/NFgATmdhLRK jyvKnWbaRHgUkZpjaoVzZ6b+DqcmCcmOVH+vfvRfbVtisq9yp2xhVk1zS1Aa4EC8yKdN7h KRbVMebcjkYGoR0PpDC/pKl9vIanjgHOs2pPDEbnjpzTDY0E90nxymYB2NMYepW+rrcDb7 UhzwvpKMCD919pbzhpN6iK2BrK9uNba2LQ7dTU4von0UoT7sNJ8C5xxV30yEPg== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: <83tu3d34u7.fsf@gnu.org> X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=2001:41d0:2:aacc::; envelope-from=theo@thornhill.no; helo=out2.migadu.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, SPF_HELO_PASS=-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: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299203 Archived-At: On 5 November 2022 14:31:44 CET, Eli Zaretskii wrote: >> From: Theodor Thornhill >> Cc: emacs-devel@gnu=2Eorg, casouri@gmail=2Ecom, monnier@iro=2Eumontreal= =2Eca >> Date: Sat, 05 Nov 2022 14:12:14 +0100 >>=20 >> So this is the code with results thus far=2E It is immediately apparen= t >> how much faster this is, IMO=2E Every test is run from a fresh `emacs >> -Q`=2E I just eval the files, enable the modes and run the tests=2E >>=20 >> What do you think? > >Looks very promising, thanks=2E > >> Is there anything clearly wrong with the benchmarks? > >I hope not ;-) > >> In many of the cases tree-sitter is an order of magnitude faster=2E > >Only in the "go-to-EOB" one, it looks like? in the others it is 3 >times faster on the average, or what did I miss? You're right, but I counted number of gcs as well when making that stateme= nt=2E=20 > >How about benchmarking indentation? E=2Eg=2E, how long does it take to >re-indent a large enough function when you add, say, 'if {' at the >beginning and '}' at the end? Sure - or even better, how about just knocking every line of xdisp to col = 0, C-x h C-i? I'll do both=2E Theo