clojure-emacs / clojure-emacs/clojure-mode
Indent very slow
- Dominant language
- Emacs Lisp
- Stars
- 1k
- Forks
- 249
- PR merge metrics
- No merged PRs in 30d
Description
*Use the template below when reporting bugs. Please, make sure that
you're running the latest stable clojure-mode and that the problem you're reporting
hasn't been reported (and potentially fixed) already.*
**Please, remove all of the placeholder text (the one in italics) in your final report!**
## Expected behavior
Fast
## Actual behavior
Slow
## Steps to reproduce the problem
Indent about a 1000 lines with little nesting.
After using the profiler, I determined that I can set `clojure-use-backtracking-indent` to nil and get a nice speedup of about 90%. I don't know what it does ("When non-nil, enable context sensitive indentation."??) - Still its too slow and takes more than a second. My machine is not the fastest, but 2 Ghz should suffice to indent a few pages of text in less than a second in a text editor.
*This is extremely important! Providing us with a reliable way to reproduce
a problem will expedite its solution.*
## Environment & Version information
### clojure-mode version
5.13.0
*Include here the version string displayed by `M-x
clojure-mode-display-version`. Here's an example:*
```
clojure-mode (version 5.2.0)
```
### Emacs version
*E.g. 24.5* (use C-h C-a to see it)
26.3
### Operating system
*E.g. Windows 10*
Contributor guide
Assessment
This issue has not been assessed yet.