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 fontification feels random Date: Sat, 05 Jun 2021 09:32:28 +0300 Message-ID: <83a6o4lt37.fsf@gnu.org> References: <831r9iw473.fsf@gnu.org> <2d6d1cb0-2e8f-ceea-cb83-3bb840b65115@dancol.org> <83zgw6udxt.fsf@gnu.org> <87czt1zzns.fsf@gmail.com> <371647e9-9508-ae98-26f0-3649d7ba114e@dancol.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17552"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dancol@dancol.org, joaotavora@gmail.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 05 08:33:15 2021 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 1lpPrv-0004NF-H4 for ged-emacs-devel@m.gmane-mx.org; Sat, 05 Jun 2021 08:33:15 +0200 Original-Received: from localhost ([::1]:42726 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpPrt-0007y1-RI for ged-emacs-devel@m.gmane-mx.org; Sat, 05 Jun 2021 02:33:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpPrI-0007I8-Jr for emacs-devel@gnu.org; Sat, 05 Jun 2021 02:32:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40606) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpPrH-0000l8-8u; Sat, 05 Jun 2021 02:32:35 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3740 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 1lpPrG-00007e-S9; Sat, 05 Jun 2021 02:32:35 -0400 In-Reply-To: (message from Stefan Monnier on Fri, 04 Jun 2021 20:29:02 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:270416 Archived-At: > From: Stefan Monnier > Cc: João Távora , Eli > Zaretskii , > emacs-devel@gnu.org > Date: Fri, 04 Jun 2021 20:29:02 -0400 > > > Besides, memory copies are really, really, ridiculously fast. My system can > > cat from /dev/zero to /dev/null at ~18GB/sec. Copying a buffer's contents > > so we can give it to tree-sitter should be no issue at all. > > Yes, beside the potential difficulty of giving direct access to the > buffer's content, there's the fact that the time needed to make a copy > will be dwarfed by the time needed by tree-sitter to parse it, turn it > into a tree, and for us to process the returned parse tree Are you sure? Tree-sitter advertises itself as being very fast in that department. Do we have any benchmark somewhere showing its parsing speed?