Micro having a lot of CPU load on big files even after closed

オープン
#4,284 コメント 13 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go
領域
cli, performance

調査の方向性

Start by tracing how Micro releases a buffer and its syntax highlighting work after a file is closed; the report does not name a source file or test, so first locate the close and highlighting paths in the Go code. Reproduce with a roughly 1.2 MB C file, close it, and check whether CPU use remains high. Done means closing the file no longer leaves sustained CPU usage.

索引モデルが issue の本文から書いたものです。

説明

bug triage
Description

I'm experiencing a problem when opening big files in Micro.

In the video attached, I open a C source-code file of around 1.2MB, right away you can notice high CPU usage while the file is open, this is understandable.

The problem here is that even after closing the file, CPU usage remais high as if the program still had that file loaded and processing something (I'd guess probably syntax highlighting because it seems incomplete when I open the file). The only way to solve this, as far as I tested, is to restart Micro.

https://github.com/user-attachments/assets/88344cc5-0fc6-4182-bda0-fa6d283799a2

If you have any more questions about my setup here i'd be glad to answer.

Best regards, love your project!

Environment
  • Version: 2.0.15 (6a62575b)
  • OS: Debian 13 (Linux 6.12.107)
  • Terminal: alacritty
主要言語
Go
スター
29.8k
フォーク
1.4k
平均マージ
1日 12時間
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

micro-editor/micro のほかの issue

micro-editor/micro の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。