55 lines
4.1 KiB
JSON
55 lines
4.1 KiB
JSON
|
|
{
|
||
|
|
"date": "2026-10-29",
|
||
|
|
"scope": "Further frontend optimization after the initial startup fixes",
|
||
|
|
"confirmedProblems": [
|
||
|
|
"Each device node computed its executor label by serializing the whole flow. Reading positions during that serialization made every label depend on every node position.",
|
||
|
|
"Branch reference summaries also serialized the whole flow just to resolve a node name.",
|
||
|
|
"Group child counts were independently scanned by each group.",
|
||
|
|
"Echart instances were not disposed on unmount, debounced resize callbacks were not cancelled, and cached inactive charts retained global resize listeners.",
|
||
|
|
"The chart theme computation mutated the parent options object.",
|
||
|
|
"The global JSON viewer and its stylesheet were loaded even on pages that did not use them."
|
||
|
|
],
|
||
|
|
"changes": [
|
||
|
|
"Share a reactive node, role and child-count index per canvas; positions and runtime output are excluded from its dependencies.",
|
||
|
|
"Resolve branch reference labels through the node index. Role, slot and upstream node renaming remain reactive.",
|
||
|
|
"Dispose chart instances on unmount; cancel pending resize work; detach listeners while cached pages are inactive and restore them on activation.",
|
||
|
|
"Derive chart options without modifying parent data, including frozen option objects.",
|
||
|
|
"Load the global JSON viewer and stylesheet on demand."
|
||
|
|
],
|
||
|
|
"isolatedComputationComparison": {
|
||
|
|
"scope": "A single Node/Vue CPU run reproducing the previous label lookup on 300 representative scanner nodes with 8 input fields each. This is not browser FPS or total drag latency.",
|
||
|
|
"previous": {"initialMs":4771.03,"afterMoveMs":4496.79,"initialGraphCopies":300,"graphCopiesAfterMove":300,"labelEvaluationsAfterMove":300},
|
||
|
|
"indexed": {"initialMs":1.87,"afterMoveMs":0.12,"initialGraphCopies":0,"graphCopiesAfterMove":0,"labelEvaluationsAfterMove":0},
|
||
|
|
"retainedScript": "scripts/measure_flow_labels.mjs"
|
||
|
|
},
|
||
|
|
"browserRegression": {
|
||
|
|
"isolatedPage": "am-web/tests/performance-regression-ui.html",
|
||
|
|
"largeFlow": {"totalNodes":301,"deviceLabels":300,"roleRenameUpdatedLabels":300,"singleRenameRenderUpdateMs":12,"actualPointerDrag":"position changed and all 300 device labels remained present"},
|
||
|
|
"chartMountUnmount": {"cycles":20,"leakedInstances":0,"parentOptionsMutated":false},
|
||
|
|
"cachedChart": {"hiddenResizeCalls":0,"reactivatedResizeCalls":1,"sameInstanceRestored":true},
|
||
|
|
"jsonViewer": {"loadedOnDemand":true,"longIntegerString":"9223372036854775807","resultTextRendered":true},
|
||
|
|
"actualCase": {"itemId":"8138c6f7b39382a62316ae633dca8527","nodes":18,"referenceText":"读取扫描仪状态.输出.scanning 等于 true","deviceLabelsCorrect":true,"savedOrExecuted":false,"consoleErrors":0}
|
||
|
|
},
|
||
|
|
"startupMeasurements": {
|
||
|
|
"method": "Fresh build asset URLs, preserving browser process, DNS and login session. The first homepage sample observed zero cache hits and zero 304 revalidations.",
|
||
|
|
"home": {"firstContentfulPaintMs":152,"contentReadyMs":1032,"largestLongTaskMs":217,"assetRequests":201,"assetTransferBytes":1699086,"cachedAssets":0,"revalidatedAssets":0},
|
||
|
|
"actualCaseAfterHome": {"firstContentfulPaintMs":144,"contentReadyMs":794,"largestLongTaskMs":155,"assetRequests":195,"assetTransferBytes":322106,"cachedAssets":0,"revalidatedAssets":153},
|
||
|
|
"interpretation": "Homepage remains around one second. A single comparison does not establish a first-screen timing improvement; this round primarily fixes interaction scaling and chart lifecycle costs.",
|
||
|
|
"previousEntryGzipBytes":1068649,
|
||
|
|
"entryGzipBytes":1063402,
|
||
|
|
"entryRawBytes":4197836
|
||
|
|
},
|
||
|
|
"checks": {
|
||
|
|
"frontendTestsPassed":154,
|
||
|
|
"frontendTestsFailed":0,
|
||
|
|
"typeCheck":"passed",
|
||
|
|
"build":"passed",
|
||
|
|
"lanHtmlStatus":200,
|
||
|
|
"apiProxyBusinessCode":0,
|
||
|
|
"webSocketUpgradeStatus":101,
|
||
|
|
"diffWhitespaceCheck":"passed"
|
||
|
|
},
|
||
|
|
"deployment": {"url":"http://localhost:5180","lanUrl":"http://192.168.0.222:5180","mode":"built preview, dual stack, gzip","backendRestarted":false},
|
||
|
|
"cleanup": {"businessDataCreated":false,"physicalDeviceActionsIssued":false,"temporaryQaService":"stopped","temporaryQaBuild":"removed","regressionCode":"retained"}
|
||
|
|
}
|