[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tree-sitter indentation for js-mode & cc-mode
From: |
Yuan Fu |
Subject: |
Re: Tree-sitter indentation for js-mode & cc-mode |
Date: |
Fri, 28 Oct 2022 01:15:09 -0700 |
>
>>> looking up way to much the root of the tree, but you know the internals
>>> here better than me. Is this something we can optimize away? See the
>>> attached report at the bottom.
>>
>> This is very strange, I need to look into it.
>>
>
> I'm happy to provide more info and profiling, as well as testing if need be!
I just tried running treesit-buffer-root-node and treesit-node-at 10000 times
in the end of buffer and they are pretty fast, so I don’t know why the
benchmark says 99% time is spent in treesit-buffer-root-node. Could you share
the benchmark code and test file? Thanks!
Yuan
- Tree-sitter indentation for js-mode & cc-mode, Yuan Fu, 2022/10/26
- Re: Tree-sitter indentation for js-mode & cc-mode, Theodor Thornhill, 2022/10/27
- Re: Tree-sitter indentation for js-mode & cc-mode, Theodor Thornhill, 2022/10/27
- Re: Tree-sitter indentation for js-mode & cc-mode, Yuan Fu, 2022/10/27
- Re: Tree-sitter indentation for js-mode & cc-mode, Theodor Thornhill, 2022/10/27
- Re: Tree-sitter indentation for js-mode & cc-mode,
Yuan Fu <=
- Re: Tree-sitter indentation for js-mode & cc-mode, Theodor Thornhill, 2022/10/28
- Re: Tree-sitter indentation for js-mode & cc-mode, Theodor Thornhill, 2022/10/28
- Re: Tree-sitter indentation for js-mode & cc-mode, Yuan Fu, 2022/10/28
- Re: Tree-sitter indentation for js-mode & cc-mode, Theodor Thornhill, 2022/10/28
- Re: Tree-sitter indentation for js-mode & cc-mode, Yuan Fu, 2022/10/28
- Re: Tree-sitter indentation for js-mode & cc-mode, Eli Zaretskii, 2022/10/29
- Re: Tree-sitter indentation for js-mode & cc-mode, Yuan Fu, 2022/10/29