Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Indent very slow #606

Copy link
Copy link
Open
Open
Copy link
@lgrapenthin

Description

@lgrapenthin
Issue body actions

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.