Skip to content

perf(flutter): add opt-in retained AOT summary and string pages - #2455

Merged
N0zoM1z0 merged 5 commits into
mainfrom
perf/latest-main-efficiency-20261013
Oct 13, 2026
Merged

N0zoM1z0 merged 5 commits into
mainfrom
perf/latest-main-efficiency-20261013

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

A shipped LocalSend Dart AOT inspection returns 151,341 bytes of complete Evidence when the analyst only needs snapshot identity and string-pool counts. Add explicit MCP detail: "summary" (12,037 bytes) while retaining the complete original Evidence for exact string-pool pages. Omitted/complete requests and the CLI preserve the full result, provider inputs, ABI selection and source identity. Lower bounds, partial coverage and nullable snapshot facts remain explicit.

Two real public SDK pairs preserve all selected facts, reduce reply bytes 92.05%, and show approximately unchanged 5.1-second SDK workflows. Four actual Codex CLI trials (requested gpt-5.6-terra high) pass every selected factual check: summary total input falls 48.75% / 42.38%, uncached input 33.63% / 42.52%, and whole-task time 23.95% / 30.30%. Complete trials make 3 / 2 attempts (one argument error); summary trials make one each. All discovery, retries and correction costs remain included, so these are scoped task results rather than engine-speed or universal claims.

A fresh previous-runtime complete request matches the candidate. Fifteen public migration calls reconstruct all 2,716 original strings with the APK absent and preserve the original exported record. Curated results and exact measured runtime pins are in experiments/analysis-efficiency/flutter-aot-summary.md; binaries, raw records and model traces stay outside Git. Final whole-scope resource counters remain unknown; narrower owned payload observations show zero phase limit events and no guard aborts.

Validation: 21 focused MCP/domain tests, 3 CLI boundary tests and 2 CLI/stdio acceptance tests; full-project typecheck with supported single-thread mode and unchanged lint. Rebased onto main a2d8b94 (Fiddler SAZ) with both capture and Dart views preserved. Targeted shared integration passes 35 tests (one opposite runtime-capacity branch skipped); docs/README checks pass. Fresh rebased real complete/summary SDK, old portable Evidence and real CLI complete checks preserve the original facts and identities. Main subsequently added aioquic qlog (bb154d1); the PR is rebased again preserving all capture/qlog/Dart branches. Affected qlog/Dart/shared integration passes 24 tests (one opposite capacity branch skipped), full typecheck/lint and docs checks pass, and fresh latest-runtime real APK SDK/old Evidence/CLI checks preserve all original facts and IDs. Final exact-head CI passed 39/39 checks; merged normally as 23de4f7. Measurements retain the earlier frozen runtime rather than being relabeled as the rebased build.

The #2016 continuation also records existing SQLite, TShark, sigrok, SAZ and qlog selection controls and real-artifact measurement priorities. No plugin SDK, cross-session engine cache, release or deployment is added.

Refs #2016.

@N0zoM1z0
N0zoM1z0 marked this pull request as ready for review October 13, 2026 02:59
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@N0zoM1z0

Copy link
Copy Markdown
Collaborator Author

Manual review of head 2db364071cf75d9e53bb289c6f2432936b248c02, rebased on main a2d8b94: verified exact named contracts, separate delivery/provider inputs, preserved ABI/default behavior, authenticated original Evidence retention, explicit lower-bound/partial semantics, and both upstream SAZ capture and new Dart view branches. No provider parser/protocol, runtime authority, SDK/cache infrastructure or release files change.

Relevant local integration: 35 passed / 1 opposite capacity branch skipped; full project typecheck/lint and docs checks pass. Rebased real LocalSend SDK complete/summary, genuine old Evidence import/page/export and actual CLI complete checks preserve original source facts/identity. Four actual Codex answers pass selected factual checks; all attempts and unknown terminal resource counters stay recorded. Curated receipts keep measured and rebased runtime pins separate. No actionable review finding remains from this inspection; final CI is still in progress.

N0zoM1z0 and others added 5 commits October 13, 2026 03:26
Preserve complete defaults, caller ABI selection, original source Evidence and partial pool lower bounds. Add production-provider SDK coverage and the latest-main measurement continuation.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Validate the original report schema explicitly now that selected MCP delivery has an additive summary variant. Related acceptance tests pass.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Keep both successful pairs, all client errors and repeated calls, old Evidence migration proof and unknown final resource counters. Extend the latest-main audit with existing SAZ retained delivery.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Keep the measured runtime pin separate from newer-main integration. Verify real APK complete/summary delivery, old Evidence continuation and the unchanged real CLI default in bounded scopes.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Preserve upstream qlog and Dart view branches after rebase. Keep original measurements pinned and qlog performance unverified pending real-recording experiments.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@N0zoM1z0
N0zoM1z0 force-pushed the perf/latest-main-efficiency-20261013 branch from 2db3640 to 1ddf299 Compare October 13, 2026 03:28
@N0zoM1z0

Copy link
Copy Markdown
Collaborator Author

Latest-main integration review for head 1ddf2999f58608cb3719edd684ccc30f5f937f1b on bb154d1067b0fc250452b7d468d0b0523031a16f:

  • Preserve all upstream capture/qlog schemas, routing and documentation while adding Dart views; no Dart provider/parser/delivery behavior changed in this second rebase.
  • Full typecheck/lint and docs checks pass. Affected Dart/qlog/shared integration: 24 passed / 1 opposite capacity branch skipped, including actual isolated decoder heap-exhaustion containment and a healthy MCP session.
  • Fresh real LocalSend SDK complete/summary facts/settings match the original reference; replies remain 151,341 / 12,037 bytes. Fifteen genuine old-Evidence import/view/export calls reconstruct every original string with the APK absent. The actual CLI complete report, subject, parameters and ID also match the previous runtime.
  • Exact integration runtime file-table SHA-256: 614e687629c8b92424fa33e655848bde92922c40c7dd6953bff6af2d10c61961. Earlier model pairs retain their original runtime pin. New-main SAZ/qlog performance is future measurement, not inferred from fixture passes.

All local heavy verification remains serial in bounded owned scopes. Highest observed kernel peak is 2,506,047,488 bytes, below the unchanged 3 GiB stop / 4 GiB hard limit; no guard abort or phase limit event. Missing final whole-scope counters remain unknown. No actionable finding remains from the integration review; final exact-head CI is running.

@N0zoM1z0
N0zoM1z0 merged commit 23de4f7 into main Oct 13, 2026
39 checks passed
@N0zoM1z0
N0zoM1z0 deleted the perf/latest-main-efficiency-20261013 branch October 13, 2026 03:39
@morluto morluto mentioned this pull request Oct 13, 2026
3 tasks done
@morluto morluto added performance Performance regressions, scaling limits, and bounded-resource work area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
@morluto morluto added the provider: flutter Analysis provider / engine: flutter label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior performance Performance regressions, scaling limits, and bounded-resource work provider: flutter Analysis provider / engine: flutter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants