unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Alan Mackenzie <acm@muc.de>
Cc: emacs-devel@gnu.org
Subject: Re: c-ts-mode is slow with large buffers.
Date: Sun, 20 Nov 2022 17:04:47 +0200	[thread overview]
Message-ID: <838rk5650w.fsf@gnu.org> (raw)
In-Reply-To: <Y3o97f7P7ZBisSam@ACM> (message from Alan Mackenzie on Sun, 20 Nov 2022 14:47:09 +0000)

> Date: Sun, 20 Nov 2022 14:47:09 +0000
> From: Alan Mackenzie <acm@muc.de>
> 
> 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.



      reply	other threads:[~2022-11-20 15:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-20 14:47 c-ts-mode is slow with large buffers Alan Mackenzie
2022-11-20 15:04 ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=838rk5650w.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).