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!
I was noticing that my file loading in emacs had become quite slow. It seems that
treesit-automode may be part of the issue.The following is my benchmarking result:
versus:
It would be nice if this were faster. Is there a workaround, at least, where we can only enable this for
prog-modebuffers?Thank you!