bit Boilerplate's WebAssembly app takes too long to become interactive
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 15/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- csharp, wasm
- 領域
- frontend, performance
調査の方向性
Start by reproducing the reported startup timings on the sales demo and inspecting the local build’s Playwright measurements and CPU profile. The report points to the CSP meta tag, first interactive render, reflection, the account menu, BitTimeZonePicker, App Insights setup, and the AOT demos, but does not define which of these should change. Treat the work as done when a scoped performance change is agreed and verified against the reported interaction delays; pull request #14116 is already open.
索引モデルが issue の本文から書いたものです。
説明
bit Boilerplate's Blazor WebAssembly app takes far too long to become interactive. On https://sales.bitplatform.dev the prerendered page shows quickly, but clicks only work after about 4 seconds on a fast desktop and about 16 seconds with the CPU throttled 4x (roughly a mid range phone).
Measured with Playwright and a CPU profile of the same app built locally:
- The Content-Security-Policy
<meta>tag at the top of the head turns off Chromium's preload scanner. The 9 stylesheets and the scripts at the end of the body then download one after another. On a 150ms latency network blazor.web.js runs at 2.2s instead of 0.75s, and the app becomes interactive at 11.3s instead of 8.5s. - The first interactive render is one long task: 1.5s on a desktop, 9s with 4x CPU throttling. Even the nearly empty not found page takes 8s, so most of it is the layout plus the interpreter running each method for the first time.
- About 38% of that managed time is reflection: component metadata, System.Text.Json metadata for JS interop arguments and DataAnnotations validation of the settings at startup (about 0.7s at 4x).
- The account menu renders all of its content while it is closed, and BitTimeZonePicker builds its whole list of time zones in OnInitialized although it only shows the selected one (about 1.1s at 4x).
- The App Insights JS SDK setup runs inside that first render (about 0.5s at 4x).
- The AOT demos compile every method ahead of time. todo-aot downloads about 10MB (dotnet.native.wasm alone is 7.7MB brotli), and its first render still blocks for 1.4s on a desktop and 8.5s at 4x.
- 主要言語
- C#
- スター
- 1.4k
- フォーク
- 264
- 平均マージ
- 13時間 15分
- マージ済み PR(30日)
- 344
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bitfoundation/bitplatform のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
bitfoundation/bitplatform#14070 ·
メンテナーはふだん 1 日以内に返信
-
BitSwipeTrap sets itself up again on every render while its first setup is pending対応中かも @yasmoradi が今日担当しました。 オープン
bitfoundation/bitplatform#14143 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
bit BlazorUI's trimming tests fail on Linux対応中かも @yasmoradi が今日担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
bitfoundation/bitplatform#14132 ·
メンテナーはふだん 1 日以内に返信
-
BbScanner improvements対応中かも @msynk が今日担当しました。 オープンarea / bbscanner
bitfoundation/bitplatform#14128 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
BitTimeZonePicker builds its whole time zone list while it is closed対応中かも @yasmoradi が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
bitfoundation/bitplatform#14125 ·
メンテナーはふだん 1 日以内に返信
bitfoundation/bitplatform の issue をすべて見る
似ている issue
-
area-multitenancy area-security p1-recommended priority-high technical-debt
難易度 2/5 1時間未満 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
kind/enhancement Provider Upgrade pulumi/pulumi-azure R1 Task
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
pulumi/pulumi-azure#3669 ·
-
type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
webclient does not start対応中かも @PawelTroka が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PawelTroka/Computator.NET#257 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
eriknihlen/OpenAC#255 ·
メンテナーはふだん 1 日以内に返信