A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/clojure-emacs/clojure-mode/issues/606 below:

Indent very slow · Issue #606 · clojure-emacs/clojure-mode · GitHub

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4