Repository navigation
Defer iOS preview, authentication and sidebar startup work - #80
Draft
tiensonqin wants to merge 10 commits into
Draft
tiensonqin wants to merge 10 commits into
tiensonqin wants to merge 10 commits into
Conversation
tiensonqin
force-pushed
the
perf/lambda-cold-start
branch
from
October 23, 2026 19:35
29cd79d to
52250db
Compare
tiensonqin
force-pushed
the
perf/lambda-cold-start
branch
from
October 23, 2026 20:20
ab7ea80 to
4ba426f
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.
Stored-session startup eagerly loaded preview/browser-authentication UI and an unopened sidebar. This pins LUI's on-demand preview and first-reveal drawer fixes, loads the public AuthenticationServices framework only for interactive sign-in, and keeps the full native navigation, controls, editing and authentication flows.
Corrects two launch-ordering defects: the ready root's opaque background was cleared on another main-queue turn, and the first-content observer could release sidebar loading behind that cover. Reveal now joins the ready root transaction. Sidebar loading waits for a display timestamp corresponding to an uncovered commit. The independent noninteractive logo fade remains unchanged; no timers, prewarming, private runtime overrides or UI omissions are used.
Includes isolated native regressions and an actual-AppMain fresh-process benchmark with the shipping FFI exports, optimized production modules, immutable binary checks, real graph titles and restored authentication. Profiling/CPU-counter observations are kept separate from uninstrumented performance samples.
Validation on current main 651202c:
Performance remains unresolved. Earlier seven-pair authentication controls measured 40.7 ms median pre-main saving but only 14.3 ms complete-frame saving. For the ordering follow-up, seven randomized three-way rounds show 64.5 ms paired window-to-content-commit saving, positive in every round, but only 1.9 ms complete-frame saving. An independent seven-pair confirmation shows 59.9 ms earlier content commit (7/7) and 11.6 ms complete-frame saving (4/7). Corrected complete-frame median in that confirmation is 707.1 ms; the 300 ms gate is still red.
Fresh profiles show approximately 34–36 ms of main-thread conformance checks, so the earlier 95 ms category is not a stable removable budget. Another observation finds substantial UIKit trait/layout execution after the earlier commit. Neither background comparison traversal nor an earlier commit can be counted as eliminated critical-path delay. Targeted drawer type boundaries, root tint omission, closed-drawer shadow/material changes, surface routing, padding and asynchronous-load prototypes failed causal controls or replication and were reverted. No experimental implementation from those controls ships.
This PR remains a draft. The extra first-layout cost is not fully explained or fixed. Uses fixes merged in logseq/lui#262, pinned at reviewed revision 3171aeaa. Investigation, rejected controls and raw measurements.