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,354 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

makepad/makepad のほかの issue

makepad/makepad の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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