TODO: core/gui resident app with a prewarmed WebView (proposal from yamc)
Startup measurements on macOS and what was tried without effect. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
975340b5f7
commit
5dd4a86b68
1 file changed
+22
@@ -55,6 +55,28 @@ speculatively.
|
||||
size and maximized state across starts (macOS and Windows;
|
||||
`gui/v0.2.0`, 2026-11-15).
|
||||
- [ ] `core/gui`: Linux/FreeBSD backend (WebKitGTK) -- see gui/README.md.
|
||||
- [ ] `core/gui`: resident app with a prewarmed WebView, for a start
|
||||
under 300 ms (proposal from yamc, 2026-11-29, for its H-STARTUP;
|
||||
see yamc `docs/spec/gui-comparison.md`). Measured on macOS (Apple
|
||||
Silicon, warm): NSApp setup ~65 ms, WKWebView init ~45 ms, window
|
||||
~25 ms, then ~190 ms until the web content process asks for the
|
||||
first resource and ~150 ms for WebKit's first paint -- ~550 ms to
|
||||
the first frame, ~340 ms of it WebKit's own, which only advances
|
||||
while the main run loop runs. Tried without effect (yamc,
|
||||
2026-11-29): `loadRequest` right after the WKWebView exists
|
||||
(before the window is built, also before `finishLaunching`),
|
||||
spinning the run loop after it, building the app's state in
|
||||
parallel -- the first request still comes ~200 ms after the main
|
||||
thread is free. So a fresh process stays at ~500 ms or more.
|
||||
Proposal: keep the process alive after its last window (macOS: a
|
||||
normal Dock app; Windows: a background process), hold one hidden
|
||||
WebView with the page loaded in reserve, and let a new start hand
|
||||
its arguments to the running instance (single instance, e.g. a
|
||||
socket in the runtime dir), which shows the reserve window and
|
||||
prepares the next. Needs several windows per process, a
|
||||
reserve-window API, and the same on WebView2. The first start
|
||||
stays at ~550 ms. Only worth it once a program needs it (yamc's
|
||||
Gio-vs-WebView choice is still open).
|
||||
- [x] `core/tui`: shared TUI kernel (themes, styles, Paint/Outer,
|
||||
ListState, text helpers) as the nested module
|
||||
`yetano.dev/yetano/core/tui` (`tui/v0.1.0`).
|
||||
|
||||
Reference in new issue
Block a user