From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: CC Mode -> Tree sitter challenge Date: Sat, 05 Nov 2022 16:55:59 +0200 Message-ID: <83pme130xs.fsf@gnu.org> References: <87v8nu1mt1.fsf@thornhill.no> <83eduh4vcf.fsf@gnu.org> <87mt951r69.fsf@thornhill.no> <83tu3d34u7.fsf@gnu.org> <87eduhxy9l.fsf@thornhill.no> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36493"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, casouri@gmail.com, monnier@iro.umontreal.ca To: Theodor Thornhill Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 05 15:56:38 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 1orKb7-0009Jz-Gk for ged-emacs-devel@m.gmane-mx.org; Sat, 05 Nov 2022 15:56:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orKac-0003BF-UD; Sat, 05 Nov 2022 10:56:06 -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 1orKab-0003AV-Bi for emacs-devel@gnu.org; Sat, 05 Nov 2022 10:56:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orKaa-0005Dg-Uy; Sat, 05 Nov 2022 10:56:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=apPw3OVp120DNeyhYonfyDV8tJpLHQ9YOwpKAv2omuo=; b=oz+8XOaVbgaA 7PclTB76xqoJhX5VZJPHJWgF8dj4pwT7yhXSN/6sD8qiTDlJcurKFfm4xz8RXNOeGHTnr+wfaUGEE msy7Lf0aevz5y7+c9lgK/5hCG+BI+ufmDcKXQ6rCwGdOXDvzeMTZADhwkE7o+z+X3Tik+GtUlUAuK YY6syCid/hbR9lGGHMtvKrbs0VjSn4dlsWK72ZqcDOGcM9AvMe098RO6uZVytlSGCX/M12TuogN8h wAw+iEXdemIuABK3Ct8RyuidD+UdK+aJ6MvSQoB2e1Tb4yuU6HTHJoqTI8+q0uyLvoBNasw0eRaX7 VeFpLUBDxGaWRrk4NnSPkw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orKaa-0004Il-4A; Sat, 05 Nov 2022 10:56:04 -0400 In-Reply-To: <87eduhxy9l.fsf@thornhill.no> (message from Theodor Thornhill on Sat, 05 Nov 2022 15:37:58 +0100) 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:299209 Archived-At: > From: Theodor Thornhill > Cc: emacs-devel@gnu.org, casouri@gmail.com, monnier@iro.umontreal.ca > Date: Sat, 05 Nov 2022 15:37:58 +0100 > > I took the function 'note_mouse_highlight' from xdisp.c, pushed all > lines to column 0 and ran: > > Keep in mind that the indentation result is not 100% identical, but I > doubt that will change anything. Why isn't it identical? Is it because the indentation code is not yet in its final shape? > I'll benchmark everything again when we're satisfied with the > behavior. This is only 2 evenings worth of hacking. OK, thanks. Again, looks good, especially I like how much less GC this produces. But note that the, if you subtract the time taken by GC, CC Mode is actually slightly faster: 6.5 sec vs 9. I wonder why is that.