docs: refresh DD-061 performance roadmap#131
Conversation
Greptile SummaryThis PR refreshes DD-061 against the v0.4.11 baseline, replacing the original abstract four-layer performance theory with an eight-PR concrete sequence grounded in current source observations and real ntnt app workloads (server-rendered templates, admin dashboards, article/list pages, DB-backed handlers).
Confidence Score: 5/5Documentation-only change with no Rust source, schema, or build configuration modifications; safe to merge. Both files are design documents. The refreshed DD body is internally consistent: baseline observations match the named source files, the PR sequence builds logically (contract before cache, harness before implementation), and the prioritization table aligns with the prose. The status field reads No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[PR 1: Template contract cleanup] --> B[PR 2: Benchmark harness]
B --> C[PR 3: Automatic template AST cache]
C --> D[PR 4: Template render scope/loop cleanup]
D --> E[PR 5: Direct native/global call fast path]
E --> F[PR 6: Environment lookup instrumentation/cache]
F --> G[PR 7: Request/response allocation cleanup]
G --> H[PR 8: Decision gate]
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
A[PR 1: Template contract cleanup] --> B[PR 2: Benchmark harness]
B --> C[PR 3: Automatic template AST cache]
C --> D[PR 4: Template render scope/loop cleanup]
D --> E[PR 5: Direct native/global call fast path]
E --> F[PR 6: Environment lookup instrumentation/cache]
F --> G[PR 7: Request/response allocation cleanup]
G --> H[PR 8: Decision gate]
Reviews (3): Last reviewed commit: "docs: add template contract phase to DD-..." | Re-trigger Greptile |
Summary
#if/#for, escaped-by-default{{expr}}, raw{{{expr}}}, partials, filter arg conventions, literal brace escaping, and consistent template error behavior.{{#key}}...{{/key}}sections for this cleanup slice.template()AST cache, template scope/loop cleanup, direct native/global call fast path, environment lookup instrumentation/cache, request/response allocation cleanup, then a measured deeper-interpreter decision.Test Plan
git diff --checkReview note
This is intentionally just a planning PR. If review flags major correctness or scope issues in the plan, we should fix those. Minor preference churn should wait for the implementation PRs so we do not relive the world's smallest procedural treadmill.