Repository navigation
perf(lynx): execute compiled native-list cells - #314
Merged
Merged
Conversation
Huxpro
marked this pull request as ready for review
September 8, 2026 21:34
This was referenced Sep 8, 2026
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
list-itemprograms when nativecomponentAtIndexmaterializes a cell, using the resident straight-line create driver instead of replaying the generic element-command streamsticky-top,sticky-bottom,full-span, andestimated-main-axis-size-px) into the compiled cell program while keeping dynamic/unsupported shapes on the existing descriptor fallbackThis is #193 Layer 1's materialization half and part of #290. The producer/transport prerequisite landed separately in #312; this PR contains only the compiled-cell consumer.
Native evidence
Device: Android Aries 10, official Lynx Explorer 4.1, thermal status 0. Candidate implementation source:
c270adf13; branch head only merges the already-greennew-lynxbase after that implementation commit.Cold fresh-cell gate
Five fixed B/C/C/B pairs, 10 fresh pages per arm. Every page materialized exactly 9 cells and recycled 0.
[1.100, 0.882, 0.622, 1.020, 0.821]; the aggregate/median result, rather than pair unanimity, is the claimThe call ledger rules out hidden host work. Baseline and candidate both made 18 ID allocations, 63 attribute writes, 63 class writes, and 10 flushes. Baseline materialized the cell subtree through 63 generic
CreateElement+ 63InsertElementBeforecalls; candidate used 9 list roots plus 18 views, 36 texts, and 54 appends through the resident program. Flush cost was identical in aggregate.Receipt:
/data00/home/xuan.huang/.codex/tmp/m3-native-list-cold-c270-final.json, SHA-2563a53c82240e027e3967fd2fe85d3f33e976efcabc59514fec720acfdbc7c1c6e.Steady recycle gate
Fixed B/C/C/B, 10 formal windows per block, 20 windows per arm. Every retained window satisfied
materialized >= 50andrecycled >= 50.Receipt:
/data00/home/xuan.huang/.codex/tmp/m3-native-list-steady-c270-final.json, file SHA-25610fa4b3f3a547ac8fc146ed0c30e11e5ca21a706ff911bcc4812c97d562f1843.Size and build controls
05dd10953c2282d1f30cf97c4167dca4ebbf88debb3d0685842cfcb3747644d7f7d8c56c8: 576,756 raw / 205,157 gzip, SHA-256a10bcd7ab77dedda09ccf178d6eb7df740262d5283a5a14ec172ecfeb4a9fc7cf7d8c56c8: +2,844 raw / +1,113 gzipd1528980b5b8e1c859fe2add693da1853634f8a8278d7763f8458cf672d59176; all controls passed.block+programwas 468,260 raw / 177,748 gzip / 148,167 Brotli.block+programmarginal over perf(lynx): retain initial list program proofs #312 producer+ACK: +1,942 raw / +962 gzip / +767 BrotliThe size tax is real and remains far above #290's final product gate; this PR does not claim to close M3 or flip the default.
Validation
pnpm syncFallback / scope
list-itemdeclaration with a compatible resident driver takes this routeAddresses #193 and advances #290.
Provenance
agent-authored)Execute compiler-emitted resident create programs for native-list cells, with transactional fallback and measured Native fresh/steady wins.