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: c-ts-mode is slow with large buffers. Date: Sun, 20 Nov 2022 17:04:47 +0200 Message-ID: <838rk5650w.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25657"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 20 16:05:29 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 1owlsu-0006Uj-F2 for ged-emacs-devel@m.gmane-mx.org; Sun, 20 Nov 2022 16:05:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owls9-0001Mf-So; Sun, 20 Nov 2022 10:04:41 -0500 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 1owls6-0001MB-Tv for emacs-devel@gnu.org; Sun, 20 Nov 2022 10:04:38 -0500 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 1owls5-0001Tc-S5; Sun, 20 Nov 2022 10:04:37 -0500 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=kbGh3HC5dRNZfthq5S6hOkSkYzaD2AIrYYfCl/1ajU4=; b=ipxoaXDIEgJD 4nYZ+GyKB0vC7wTzcZpyPr36L1qAyCiz0lJyBg3tzV/uuR6+elQtDI3NgDPJ6PV+BhXhlV+r9Idl7 cBU79GgW4ecP1dKXnzCIOcaGLTMEpu9OuTTnUg1vAY29AI91vnDrGL8rTsoYGZmjA5B1ondLHYToy WbviJUJ4Ja9EsTOQrhjLEF+MGD/Hjc1dcFS/T9jMVqegmLMcV/NBArwf2pepjrXvWLZzKXNkQzM3w fHoZa/+gDfJnLlfk+e9kLEeTgZZCPNspe6vpEJmluW/PKqeJzRtfgEhgth7oJtDedn87yfVgMceoj ewj+SzlWBfWOJjIJVRY9ww==; 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 1owls5-00080J-7c; Sun, 20 Nov 2022 10:04:37 -0500 In-Reply-To: (message from Alan Mackenzie on Sun, 20 Nov 2022 14:47:09 +0000) 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:300249 Archived-At: > Date: Sun, 20 Nov 2022 14:47:09 +0000 > From: Alan Mackenzie > > Just for fun, I downloaded the feature/tree-sitter branch, and tried > scrolling through a large C buffer, from file packet-rrc.c. This file > is part of Wireshark, and was the topic of bug #45248. It is just under > 10 MB big. > > To scroll all the way through the file with c-ts-mode took ~53 minutes. > For comparison, in C Mode it to ~157 seconds. That's a factor of around > 20 difference. > > Also of interest, towards the end of the buffer in c-ts-mode, the > font-locking gave up completely. It was in an initialisation for a big > brace block. > > I'm probably not saying anything people don't already know, but the > measured timings might be helpful. Thanks, but please report this and similar issues using report-emacs-bug, not here.