-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
julia-mode: Indentation performance improvements
These focus on the block indentation algorithm, and basically remove unnecessary checks. 1. If we jump out of any comments at the beginning of the block indentation routine we don't need to check later if we are in a comment because backward-sexp jumps over comment blocks. 2. We also don't need to check if an end keyword is inside of brackets, because any time we are in brackets indentation is handled by julia-paren-indent. For an example of performance improvements, the time to indent lapack.jl falls from ~9s to ~3s on my machine. Added an indentation test for the end keyword appearing in brackets.
- Loading branch information
Showing
2 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters