perf(startup): reduce desktop first-screen work#934
Merged
limityan merged 1 commit intoMay 29, 2026
Conversation
373373e to
b7f3d22
Compare
c3cd14c to
9ad59f8
Compare
9ad59f8 to
bf1163d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tracking issue: #949
Performance Data
Benchmark method: Windows desktop
release-fastcold launches, 10 runs per build. The comparison uses the same packaged WebView path (tauri.localhost) for baseline and stage 1. Baseline snapshot:main@9fa991f6; PR head:bf1163d0. The branch is rebased ontogcwing/main@8a93ed70; the newer base commits are i18n contract guardrails and remote-connect owner migration changes, not frontend startup changes.main_window_shownstart_application_endstartApplicationDurationMsafterRenderDurationMsinteractive_shell_readyAdditional notes:
mainWindowShownReasonwasstartup-nativein all 10 stage-1 runs, with zero frontend fallback shows.page5_avg_ms=11.550versusfull_list_avg_ms=88.142for 1000 sessions, or about 7.6x faster for the paged backend path.Risks and Tradeoffs
interactive_shell_readyp50 is still about 89 ms slower. Follow-up work should target React mount/effect cost and shell readiness directly.Verification
pnpm run fmt:rspnpm run check:repo-hygienepnpm run check:github-configpnpm run i18n:generatepnpm run i18n:auditpnpm run i18n:contract:testpnpm run lint:webpnpm run type-check:webpnpm --dir src/web-ui run test:runcargo test -p bitfun-core list_session_metadata_page -- --nocapturecargo test -p bitfun-core bench_session_metadata_page_vs_full_list -- --ignored --nocapturecargo test -p bitfun-corecargo check --workspacegit diff --checkgit diff --cached --check