Organizer: selecting a folder spends about 0.19 s per calculation on the main thread (ProjectContextPanel::initialize)
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- c
- 領域
- desktop, performance
調査の方向性
Start by profiling ProjectContextPanel::initialize while selecting folders with many calculations, as described in the issue; compare local and SSH folders. Identify the per-row work rebuilding the mirror and reading properties, then address its cost or main-thread impact. Add a test that bounds selection time for a folder of N calculations.
索引モデルが issue の本文から書いたものです。
説明
Selecting a folder in the Organizer does local work on the GUI main thread after the listing arrives, and that work grows with the number of calculations in the folder. Measured headless on an SSH folder, as the whole selection minus the remote script (#1220):
| Folder | Remote script | Whole selection | Local work |
|---|---|---|---|
| 8 plain folders | 68 ms | 0.61 s | ~0.4 s |
| 300 plain folders | 1.74 s | 2.57 s | ~0.8 s |
| 20 calculations | 2.16 s | 5.93 s | ~3.8 s |
That is about 0.19 s per calculation. The tree rows and icons cost almost nothing (0.03 s for 300 rows), and getChildren was already cached. Most of the time is in setContextPanel → ProjectContextPanel::initialize, which rebuilds the mirror and reads properties for each row. It has not been profiled inside yet. At this rate a folder of 200 calculations would block the window for about 40 s. A local folder is probably affected too; this has not been checked.
To do: profile ProjectContextPanel::initialize on a folder with many calculations (local and SSH), remove the per-row cost or move it off the main thread, and add a test that bounds the selection time for a folder of N calculations.
- 主要言語
- C
- スター
- 10
- フォーク
- 8
- 平均マージ
- 6時間 32分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
FriendsofECCE/ECCE のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
FriendsofECCE/ECCE#1358 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
FriendsofECCE/ECCE#1353 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
FriendsofECCE/ECCE#1348 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
FriendsofECCE/ECCE#1347 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
FriendsofECCE/ECCE#1345 ·
FriendsofECCE/ECCE の issue をすべて見る
似ている issue
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Life-Framework/Life-Framework#5378 ·
メンテナーはふだん 1 日以内に返信
-
Bug Status: Needs Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug status: planned ui
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ChupathingyCE/chupathingyce#2126 ·
メンテナーはふだん 1 日以内に返信
-
good first issue simulation
難易度 1/5 1〜3時間 初心者へのやさしさ 92/100
MarcosAsh/Lattice_Fluid_Dynamics#270 ·
メンテナーはふだん 1 日以内に返信
-
needs-kind
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
falcosecurity/libs#3173 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信