Skip to content

Slows down loading, even of text files #135

@egh

Description

@egh

I was noticing that my file loading in emacs had become quite slow. It seems that treesit-auto mode may be part of the issue.

The following is my benchmarking result:

(global-treesit-auto-mode 1)
(benchmark-run 1 (find-file "x.txt"))
=> (1.84767 0 0.0)

versus:

(global-treesit-auto-mode -1)
(benchmark-run 1 (find-file "x.txt"))
=> (0.047460999999999996 0 0.0)

It would be nice if this were faster. Is there a workaround, at least, where we can only enable this for prog-mode buffers?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions