makepad run: a sealed mode for a converged phone cache (unmap the source images and the compiler's state: 700-800 MB resident vs ~300 MB native)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- performance
調査の方向性
Start by tracing the run store of parsed source images (front_run-*.rcs), the compiler's retained state, and the host's cache-convergence and live-edit conditions; the issue does not name source files or tests. The proposal is to define when a phone host can enter a sealed state and what must remain mapped. Done means the host can unmap source images and drop compiler state when eligible, while retaining code, slots, and the collected program.
索引モデルが issue の本文から書いたものです。
説明
Resident memory of the WM phone host on a phone, converged and idle: 680–800 MB (OnePlus 6 / Redmi Note 12), against ~300 MB for a native build of a comparable home app on the same phones; 1.5 GB while the aot-max pass runs after a cold start. Measured with the work branch plus #1342–#1352.
What is mapped and kept: the run store of parsed source images (front_run-*.rcs, ~310 MB), the crate packs and code stores, the collected program, and the compiler's working sets (the body RIR the settle sweeps drop a few MB at a time). All of it is needed while bodies may still be compiled or edited. Once a cache has converged (the ahead pass finds nothing more to build) and no live-edit session or devhub lease is attached, a phone build needs only the code and the slot tables to run — the way a Dart AOT snapshot runs on a runtime without a JIT, or an ART-compiled app never maps its sources.
Proposal: a sealed state the host can ask for on a phone (and leave on an edit, a domain start that misses, or a cache write): unmap the front images and the run store, drop the compiler's retained state, keep code, slots and the collected program. The 310 MB of source images alone is the difference between 2.5× and ~1.5× of the native app's memory. I can measure what a sealed process still touches if that helps decide the boundary.
- 主要言語
- Rust
- スター
- 7.2k
- フォーク
- 408
- 平均マージ
- 10時間 19分
- マージ済み PR(30日)
- 33
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
makepad/makepad のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 64/100
makepad/makepad#1388 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
makepad/makepad の issue をすべて見る
似ている issue
-
CI/CD ignore-for-release
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
eclipse-ankaios/ankaios#844 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
std: `SliceIndex<str>` missing for `std::ops` ranges, so generic `R: SliceIndex<str>` bounds failオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
symposium-dev/symposium#530 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信