Indent very slow
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- clojure, emacs-lisp
- 領域
- performance, tooling
調査の方向性
まず、clojure-use-backtracking-indent を有効にして約1,000行のインデントをプロファイリングし、次にレポートで説明されている nil 設定と比較します。clojure-mode のインデントのエントリポイントを調査し、期待されるコンテキスト依存の動作を失うことなく、この再現が1秒未満で完了するよう修正されていることを確認します。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Emacs Lisp
- スター
- 1k
- フォーク
- 249
- 平均マージ
- 1日 6時間
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
clojure-emacs/clojure-mode のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
clojure-emacs/clojure-mode#699 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
clojure-emacs/clojure-mode#660 · コメント 5 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
clojure-emacs/clojure-mode#647 · コメント 1 件 ·
-
bug help wanted indentation
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
clojure-emacs/clojure-mode#620 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
clojure-emacs/clojure-mode#613 · リアクション 1 件 ·
clojure-emacs/clojure-mode の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
bug: breadcrumbs separator selector makes Chrome restyle the whole parent on DOM changes対応中かも @oliverhaas が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
saadeghi/daisyui#4893 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 7 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
SciML/PETScDiffEq.jl#517 ·
メンテナーはふだん 1 日以内に返信
-
area:tui kind:perf priority:p3 ready
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信