[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#69071: Emacs master branch: c-ts-mode is slow with large C functions
From: |
Yuan Fu |
Subject: |
bug#69071: Emacs master branch: c-ts-mode is slow with large C functions. |
Date: |
Sat, 24 Feb 2024 12:35:50 -0800 |
> On Feb 20, 2024, at 5:55 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>
>> From: Yuan Fu <casouri@gmail.com>
>> Date: Mon, 19 Feb 2024 21:49:26 -0800
>> Cc: Alan Mackenzie <acm@muc.de>,
>> 69071@debbugs.gnu.org
>>
>> Before we continue, let me note that this seems like another case where
>> tree-sitter-c parser chokes on some extreme C code. Profiler reports shows
>> that almost all time are spent in treesit-parser-root-node, which indicates
>> that all the time are spent parsing the text.
>
> So maybe this is something to report to tree-sitter and/or
> tree-sitter-c developers? (Does c++-ts-mode behave better with this
> file?)
We could, but honestly I don’t think they can/want to do anything.
Yuan