flutter / flutter/devtools

optimize `_updateLocalClasses` in Inspector Service

オープン
#4,393 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
P3
主要言語
Dart
スター
1.7k
フォーク
404
平均マージ
6日 17時間
マージ済み PR(30日)
18

説明

_updateLocalClasses fetches each of the objects individually. This causes a performance bottleneck on pub root directory change.
If this class ends up being needed, the we will need to find a call that batches the request, to avoid overloading the vm with rpc calls.

**NOTE:** `isLocalClass` may not be hooked up to the fronted properly yet. So doing this optimization may not be needed until that is accomplished

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず Inspector Service の `_updateLocalClasses` を追跡し、`isLocalClass` が frontend にどのように接続されているかを確認します。個々のオブジェクト取得に対する batching 呼び出しが存在するかを特定します。feature が有効な場合に、ローカルクラスの動作を変更せずに不要な RPC 呼び出しを回避できれば完了です。

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

評価

技術スタック
dart
領域
devtools, performance
issue の種類
リファクタリング
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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