reactive-md 0.8.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG-ch.md +54 -4
- package/CHANGELOG.md +55 -4
- package/CONTRIBUTING-ch.md +13 -2
- package/CONTRIBUTING.md +13 -2
- package/README-ch.md +132 -23
- package/README-en.md +130 -21
- package/README.md +128 -21
- package/SECURITY-ch.md +3 -3
- package/SECURITY.md +3 -3
- package/THIRD_PARTY_NOTICES.md +111 -1
- package/cli/args.mjs +51 -1
- package/cli/assets.mjs +6 -1
- package/cli/build.mjs +125 -9
- package/cli/fs-utils.mjs +3 -3
- package/cli/help.mjs +12 -5
- package/cli/init.mjs +1 -1
- package/cli/package.mjs +1 -0
- package/dist-library/LocalDocumentView-sthUP0ct.js +109 -0
- package/dist-library/LocalDocumentViewCore-GiWV3bey.js +9829 -0
- package/dist-library/LocalReactiveDocumentCore-ZjQSGyHE.js +275 -0
- package/dist-library/{authoring-BsfSwQRm.js → authoring-Dsune4Hy.js} +240 -218
- package/dist-library/compile-wUv8KEge.js +1249 -0
- package/dist-library/{compiler-core-kPiH-gOV.js → compiler-core-As_m-MNm.js} +5372 -5559
- package/dist-library/compiler-eOfcinZs.js +62 -0
- package/dist-library/component-state-BoLCGee4.js +801 -0
- package/dist-library/{component-state-D_cw_EHe.js → component-state-C52ZFJGl.js} +2 -2
- package/dist-library/{registry-B9Jc3FVe.js → config-BadfhjdP.js} +374 -457
- package/dist-library/{config-validation-DXTynAw7.js → config-validation-F47AcE6o.js} +549 -751
- package/dist-library/controls-CcT6n7k_.js +6740 -0
- package/dist-library/coordinate-CWS9p5q_.js +293 -0
- package/dist-library/data-table-Bgccxd7h.js +296 -0
- package/dist-library/{default-components-Z_YMio5P.js → default-components-BwQf0oP-.js} +344 -334
- package/dist-library/{math-display-BJz4gbFc.js → display-B-VhqVND.js} +1299 -1299
- package/dist-library/export-BqVmTXm8.js +369 -0
- package/dist-library/gallery-CY6mTx8i.js +360 -0
- package/dist-library/html-CNT4KD-2.js +757 -0
- package/dist-library/{math-sample-BGEW49zY.js → incremental-Dv0FSp_U.js} +476 -394
- package/dist-library/latex-1w7aQgD5.js +928 -0
- package/dist-library/layout-C0YlEPGr.js +562 -0
- package/dist-library/mount-preset-KxvtKgJb.js +13 -0
- package/dist-library/options-1aDLK7JY.js +121 -0
- package/dist-library/{react-ByOHunUW.js → package-core-WFK1RhAZ.js} +49 -55
- package/dist-library/{parser-standard-DlCk7sLo.js → parser-standard-Yuf3A_VI.js} +6605 -7097
- package/dist-library/plugin-packs-B1XPWcFs.js +18 -0
- package/dist-library/{identity-MYJXKSkB.js → preset-core-CKc5YXSM.js} +31 -31
- package/dist-library/{props-DGlBk0e5.js → props-sJ8vk0cr.js} +1 -1
- package/dist-library/react-BbyAgeXc.js +6070 -0
- package/dist-library/react-D5iGiUdL.js +7 -0
- package/dist-library/reactive-md-authoring.js +222 -223
- package/dist-library/reactive-md-build.js +126 -72
- package/dist-library/reactive-md-compiler-standard.js +12 -10
- package/dist-library/reactive-md-compiler.js +3 -3
- package/dist-library/reactive-md-default-packs.js +2 -2
- package/dist-library/reactive-md-default-preset.js +4 -4
- package/dist-library/reactive-md-export-assets.js +57 -0
- package/dist-library/reactive-md-export.js +5 -111
- package/dist-library/reactive-md-minimal-preset.js +24 -0
- package/dist-library/reactive-md-minimal-react-preset.js +26 -0
- package/dist-library/reactive-md-minimal-styles.js +80 -0
- package/dist-library/reactive-md-minimal.css +2 -0
- package/dist-library/reactive-md-pdf.js +7582 -0
- package/dist-library/reactive-md-plugin-chart.js +13 -0
- package/dist-library/reactive-md-plugin-data.js +17 -0
- package/dist-library/reactive-md-plugin-diagram.js +18 -0
- package/dist-library/reactive-md-plugin-forms.js +18 -0
- package/dist-library/reactive-md-plugin-gallery.js +12 -0
- package/dist-library/reactive-md-plugin-navigation.js +15 -0
- package/dist-library/reactive-md-plugin-network.js +222 -0
- package/dist-library/reactive-md-plugin-plot.js +24 -0
- package/dist-library/reactive-md-print.css +5 -0
- package/dist-library/reactive-md-react-minimal.js +28 -0
- package/dist-library/reactive-md-react-server.js +34 -32
- package/dist-library/reactive-md-react-unstyled.js +14 -9
- package/dist-library/reactive-md-react.js +14 -9
- package/dist-library/reactive-md-runtime-browser.js +847 -15
- package/dist-library/reactive-md-runtime.js +3 -3
- package/dist-library/reactive-md-sdk.js +8 -6
- package/dist-library/reactive-md-standalone-configured.js +16 -0
- package/dist-library/reactive-md-standalone-host.js +9 -438
- package/dist-library/reactive-md-testing-browser.js +5 -4
- package/dist-library/reactive-md-testing-react.js +46 -44
- package/dist-library/reactive-md-testing.js +45 -44
- package/dist-library/reactive-md-vite.js +135 -37
- package/dist-library/reactive-md.css +1 -1
- package/dist-library/reactive-md.js +590 -498
- package/dist-library/registry-B9NGct4d.js +20 -0
- package/dist-library/registry-core-Bbad9Bm2.js +479 -0
- package/dist-library/{resources-BGt8mpDA.js → resources-D2GDQS0p.js} +45 -45
- package/dist-library/{runtime-Dkq7ldyg.js → runtime-B2fxeveq.js} +1 -1
- package/dist-library/runtime-kcA7bG7G.js +1282 -0
- package/dist-library/sample-bP4zHB3L.js +289 -0
- package/dist-library/{schema-ZFufO8V0.js → schema-BufhKUSM.js} +12 -11
- package/dist-library/sdk-core-BoJT1SIt.js +1166 -0
- package/dist-library/session-core-nmJHuR9c.js +452 -0
- package/dist-library/{shareable-DDVL4Fi9.js → shareable-DpbE-59H.js} +250 -283
- package/dist-library/tooltip-layer-HDLrSWs0.js +28 -0
- package/dist-library/types/authoring/catalog.d.ts +2 -3
- package/dist-library/types/authoring/editor-i18n.d.ts +1 -1
- package/dist-library/types/authoring/index.d.ts +1 -1
- package/dist-library/types/authoring/insert.d.ts +1 -1
- package/dist-library/types/authoring/templates.d.ts +2 -2
- package/dist-library/types/build/diagnostics.d.ts +1 -1
- package/dist-library/types/build/host.d.ts +1 -1
- package/dist-library/types/build/index.d.ts +1 -1
- package/dist-library/types/build/notices.d.ts +1 -1
- package/dist-library/types/build/resources.d.ts +1 -1
- package/dist-library/types/build/vite.d.ts +1 -1
- package/dist-library/types/compiler/index.d.ts +2 -2
- package/dist-library/types/compiler/result.d.ts +1 -1
- package/dist-library/types/compiler/standard.d.ts +2 -2
- package/dist-library/types/compiler/types.d.ts +1 -1
- package/dist-library/types/components/{controls.d.ts → controls/controls.d.ts} +2 -3
- package/dist-library/types/components/{numeric-sliders.d.ts → controls/numeric-sliders.d.ts} +1 -1
- package/dist-library/types/components/{gallery.d.ts → gallery/gallery.d.ts} +1 -1
- package/dist-library/types/components/{layout.d.ts → layout/layout.d.ts} +1 -1
- package/dist-library/types/components/minimal-preset.d.ts +2 -0
- package/dist-library/types/components/mount-preset.d.ts +4 -0
- package/dist-library/types/components/network/submit-button.d.ts +10 -0
- package/dist-library/types/components/plot/coordinate.d.ts +2 -0
- package/dist-library/types/components/plugins/chart.d.ts +2 -0
- package/dist-library/types/components/plugins/data.d.ts +2 -0
- package/dist-library/types/components/plugins/diagram.d.ts +2 -0
- package/dist-library/types/components/plugins/forms.d.ts +2 -0
- package/dist-library/types/components/plugins/gallery.d.ts +2 -0
- package/dist-library/types/components/plugins/navigation.d.ts +2 -0
- package/dist-library/types/components/plugins/network.d.ts +2 -0
- package/dist-library/types/components/plugins/plot.d.ts +2 -0
- package/dist-library/types/components/shared/visual-frame.d.ts +12 -0
- package/dist-library/types/components/{visuals.d.ts → shared/visuals.d.ts} +1 -7
- package/dist-library/types/components/{data-table.d.ts → table/data-table.d.ts} +2 -2
- package/dist-library/types/export/component-state.d.ts +1 -1
- package/dist-library/types/export/index.d.ts +2 -1
- package/dist-library/types/export/print-document.d.ts +18 -0
- package/dist-library/types/export/render-markup.d.ts +23 -0
- package/dist-library/types/export/requirements.d.ts +1 -1
- package/dist-library/types/export/resources.d.ts +1 -1
- package/dist-library/types/export/restoration.d.ts +1 -1
- package/dist-library/types/export-assets/index.d.ts +25 -0
- package/dist-library/types/local/compilation/compiler-attributes.d.ts +8 -0
- package/dist-library/types/local/compilation/compiler-bindings.d.ts +19 -0
- package/dist-library/types/local/compilation/compiler-capabilities.d.ts +3 -0
- package/dist-library/types/local/compilation/compiler-core.d.ts +11 -3
- package/dist-library/types/local/compilation/compiler-declarations.d.ts +32 -0
- package/dist-library/types/local/compilation/compiler-expressions.d.ts +32 -0
- package/dist-library/types/local/compilation/compiler-services.d.ts +62 -16
- package/dist-library/types/local/compilation/compiler-structure.d.ts +38 -3
- package/dist-library/types/local/compilation/compiler-tables.d.ts +30 -0
- package/dist-library/types/local/compilation/compiler-validation.d.ts +15 -0
- package/dist-library/types/local/compilation/compiler-values.d.ts +39 -1
- package/dist-library/types/local/compilation/compiler.d.ts +7 -14
- package/dist-library/types/local/compilation/dependencies.d.ts +1 -1
- package/dist-library/types/local/compilation/session/incremental.d.ts +75 -0
- package/dist-library/types/local/{session → compilation/session}/row-reuse.d.ts +1 -1
- package/dist-library/types/local/{session/compiler-cache.d.ts → compilation/session/semantic-cache.d.ts} +5 -19
- package/dist-library/types/local/compilation/streaming.d.ts +27 -0
- package/dist-library/types/local/configuration/capability-policy.d.ts +3 -0
- package/dist-library/types/local/{compilation → configuration}/component-kernel.d.ts +3 -79
- package/dist-library/types/local/configuration/diagnostic-messages.d.ts +1104 -1056
- package/dist-library/types/local/configuration/diagnostic-runtime-messages.d.ts +731 -0
- package/dist-library/types/local/configuration/diagnostics.d.ts +1 -1
- package/dist-library/types/local/configuration/kernel-value-rules.d.ts +66 -0
- package/dist-library/types/local/configuration/official-leaf-syntax.d.ts +24 -0
- package/dist-library/types/local/configuration/options-core.d.ts +5 -4
- package/dist-library/types/local/configuration/options.d.ts +2 -1
- package/dist-library/types/local/configuration/portable-options.d.ts +1 -1
- package/dist-library/types/local/configuration/schema-core.d.ts +1 -1
- package/dist-library/types/local/configuration/schema.d.ts +1 -1
- package/dist-library/types/local/css/author-css.d.ts +66 -0
- package/dist-library/types/local/evaluation/computations.d.ts +2 -2
- package/dist-library/types/local/evaluation/expression/compile.d.ts +30 -0
- package/dist-library/types/local/evaluation/expression/evaluation.d.ts +3 -0
- package/dist-library/types/local/evaluation/expression/inference.d.ts +4 -0
- package/dist-library/types/local/evaluation/expression/syntax.d.ts +72 -0
- package/dist-library/types/local/evaluation/expression/values.d.ts +56 -0
- package/dist-library/types/local/evaluation/{math-display.d.ts → math/display.d.ts} +2 -2
- package/dist-library/types/local/evaluation/math/evaluation.d.ts +10 -0
- package/dist-library/types/local/evaluation/{math.d.ts → math/latex.d.ts} +58 -17
- package/dist-library/types/local/evaluation/{math-sample.d.ts → math/sample.d.ts} +4 -2
- package/dist-library/types/local/evaluation/math/syntax.d.ts +72 -0
- package/dist-library/types/local/evaluation/validation.d.ts +1 -1
- package/dist-library/types/local/html/extended-fragment.d.ts +41 -0
- package/dist-library/types/local/html/html-details.d.ts +1 -1
- package/dist-library/types/local/html/html-entities.d.ts +11 -2
- package/dist-library/types/local/html/html-recovery.d.ts +1 -1
- package/dist-library/types/local/html/html-table.d.ts +1 -1
- package/dist-library/types/local/html/html.d.ts +40 -4
- package/dist-library/types/local/index.d.ts +14 -13
- package/dist-library/types/local/parsing/author-markdown.d.ts +11 -0
- package/dist-library/types/local/{markdown → parsing}/fast-markdown.d.ts +1 -1
- package/dist-library/types/local/{markdown → parsing}/footnotes.d.ts +1 -1
- package/dist-library/types/local/{markdown → parsing}/heading-anchors.d.ts +1 -1
- package/dist-library/types/local/parsing/html-attributes.d.ts +14 -0
- package/dist-library/types/local/parsing/parse-budget.d.ts +1 -1
- package/dist-library/types/local/{session → parsing}/parse-session.d.ts +5 -5
- package/dist-library/types/local/parsing/parser-capabilities.d.ts +7 -2
- package/dist-library/types/local/parsing/parser-convert.d.ts +26 -0
- package/dist-library/types/local/parsing/parser-core.d.ts +10 -4
- package/dist-library/types/local/parsing/parser-internals.d.ts +54 -0
- package/dist-library/types/local/parsing/parser-region.d.ts +46 -0
- package/dist-library/types/local/parsing/parser-standard.d.ts +3 -0
- package/dist-library/types/local/parsing/parser-tags.d.ts +108 -0
- package/dist-library/types/local/parsing/parser.d.ts +3 -3
- package/dist-library/types/local/{markdown → parsing}/plain-paragraphs.d.ts +1 -1
- package/dist-library/types/local/parsing/rmd-recovery.d.ts +1 -1
- package/dist-library/types/local/parsing/theme-declaration.d.ts +22 -0
- package/dist-library/types/local/rendering/document/ExtendedHtmlFragment.d.ts +14 -0
- package/dist-library/types/local/rendering/document/LocalDocumentView.d.ts +5 -0
- package/dist-library/types/local/rendering/{LocalDocumentView.d.ts → document/LocalDocumentViewCore.d.ts} +48 -9
- package/dist-library/types/local/rendering/document/LocalReactiveDocumentCore.d.ts +6 -0
- package/dist-library/types/local/rendering/document/render-nodes.d.ts +24 -0
- package/dist-library/types/local/rendering/document/use-author-script.d.ts +3 -0
- package/dist-library/types/local/rendering/document/use-color-scheme.d.ts +10 -0
- package/dist-library/types/local/rendering/document/validation-state.d.ts +31 -0
- package/dist-library/types/local/rendering/document/view-render-context.d.ts +146 -0
- package/dist-library/types/local/rendering/{view-revision.d.ts → document/view-revision.d.ts} +31 -4
- package/dist-library/types/local/rendering/render-types.d.ts +1 -1
- package/dist-library/types/local/{widgets/table-surface.d.ts → rendering/table/data-table.d.ts} +3 -0
- package/dist-library/types/local/rendering/table/table-numeric-columns.d.ts +7 -0
- package/dist-library/types/local/runtime/author-script-protocol.d.ts +59 -0
- package/dist-library/types/local/runtime/retention.d.ts +1 -1
- package/dist-library/types/local/runtime/runtime-document.d.ts +71 -0
- package/dist-library/types/local/runtime/runtime-migration.d.ts +19 -0
- package/dist-library/types/local/runtime/runtime-values.d.ts +39 -0
- package/dist-library/types/local/runtime/runtime.d.ts +4 -2
- package/dist-library/types/local/runtime/state.d.ts +1 -1
- package/dist-library/types/local/source/authoring-syntax.d.ts +48 -0
- package/dist-library/types/local/source/authoring.d.ts +1 -1
- package/dist-library/types/local/source/source-context.d.ts +23 -0
- package/dist-library/types/local/source/source-migration.d.ts +2 -2
- package/dist-library/types/local/transport/compile-patch.d.ts +1 -1
- package/dist-library/types/local/transport/flat-compiled-data.d.ts +1 -1
- package/dist-library/types/local/transport/shared-data.d.ts +1 -1
- package/dist-library/types/local/transport/worker-handler.d.ts +30 -0
- package/dist-library/types/local/transport/worker-job.d.ts +28 -0
- package/dist-library/types/local/transport/worker.d.ts +32 -46
- package/dist-library/types/local/{contracts/types.d.ts → types.d.ts} +78 -21
- package/dist-library/types/pdf.d.ts +22 -0
- package/dist-library/types/presets/identity.d.ts +1 -0
- package/dist-library/types/presets/minimal.d.ts +2 -0
- package/dist-library/types/presets/plugin-packs.d.ts +1 -0
- package/dist-library/types/react/component-api.d.ts +20 -4
- package/dist-library/types/react/component-primitives.d.ts +10 -10
- package/dist-library/types/react/component-utils.d.ts +9 -1
- package/dist-library/types/react/index.d.ts +6 -5
- package/dist-library/types/{local/theme/i18n.d.ts → react/localization.d.ts} +2 -2
- package/dist-library/types/react/minimal.d.ts +13 -0
- package/dist-library/types/react/package-core.d.ts +67 -0
- package/dist-library/types/react/package.d.ts +3 -67
- package/dist-library/types/react/runtime/common.d.ts +1 -1
- package/dist-library/types/react/sdk-core.d.ts +115 -0
- package/dist-library/types/react/sdk.d.ts +4 -110
- package/dist-library/types/react/server.d.ts +2 -2
- package/dist-library/types/react/use-draft-field.d.ts +5 -1
- package/dist-library/types/runtime-services/browser/duplex.d.ts +163 -0
- package/dist-library/types/runtime-services/browser/http-sse.d.ts +117 -0
- package/dist-library/types/runtime-services/browser/index.d.ts +2 -1
- package/dist-library/types/runtime-services/component-state.d.ts +1 -1
- package/dist-library/types/runtime-services/index.d.ts +2 -0
- package/dist-library/types/runtime-services/network.d.ts +86 -0
- package/dist-library/types/runtime-services/runtime.d.ts +1 -1
- package/dist-library/types/sdk/config.d.ts +1 -1
- package/dist-library/types/sdk/index.d.ts +1 -0
- package/dist-library/types/sdk/props.d.ts +1 -1
- package/dist-library/types/sdk/registry-core.d.ts +1 -1
- package/dist-library/types/sdk/theme.d.ts +5 -4
- package/dist-library/types/sdk/types.d.ts +2 -2
- package/dist-library/types/shareable.d.ts +6 -5
- package/dist-library/types/standalone/diagnostics.d.ts +1 -1
- package/dist-library/types/standalone/host.d.ts +5 -0
- package/dist-library/types/standalone/payload.d.ts +1 -1
- package/dist-library/types/standalone/prepare.d.ts +2 -2
- package/dist-library/types/standalone/session-core.d.ts +68 -0
- package/dist-library/types/standalone/session.d.ts +6 -68
- package/dist-library/types/themes/contract.d.ts +7 -0
- package/dist-library/types/{local/theme/theme.d.ts → themes/document-theme.d.ts} +4 -3
- package/dist-library/types/vite/client.d.ts +19 -0
- package/dist-library/types/vite/index.d.ts +18 -3
- package/dist-library/types/vite/registration.d.ts +2 -2
- package/dist-library/{types-BFCrMrg0.js → types-BeNtPqdY.js} +1 -1
- package/dist-library/validation-BEBA_HvS.js +1121 -0
- package/dist-library/visual-frame-CyV1FXzs.js +48 -0
- package/dist-library/visuals-B5KSafVk.js +3 -0
- package/dist-library/visuals-BZbZYA7w.js +72572 -0
- package/dist-standalone/reactive-md-standalone.css +1 -1
- package/dist-standalone/reactive-md-standalone.js +146 -137
- package/docs/README-ch.md +16 -11
- package/docs/README.md +16 -11
- package/docs/compatibility/compatibility-ch.md +8 -8
- package/docs/compatibility/compatibility-en.md +8 -8
- package/docs/compatibility/source-versioning-ch.md +1 -1
- package/docs/compatibility/source-versioning-en.md +1 -1
- package/docs/development/component-development-ch.md +2 -2
- package/docs/development/component-development-en.md +2 -2
- package/docs/development/component-development-reference-ch.md +4 -4
- package/docs/development/component-development-reference-en.md +4 -4
- package/docs/development/component-protocol-ch.md +14 -14
- package/docs/development/component-protocol-en.md +14 -14
- package/docs/development/extension-tutorial-ch.md +308 -0
- package/docs/development/extension-tutorial-en.md +308 -0
- package/docs/development/local-module-layout-ch.md +10 -50
- package/docs/development/local-module-layout-en.md +9 -49
- package/docs/development/performance-overview-ch.md +174 -154
- package/docs/development/performance-overview-en.md +174 -154
- package/docs/guides/local-guide-ch.md +2 -2
- package/docs/guides/local-guide-en.md +2 -2
- package/docs/integration/author-tools-ch.md +2 -2
- package/docs/integration/author-tools-en.md +2 -2
- package/docs/integration/compiler-ch.md +4 -2
- package/docs/integration/compiler-en.md +4 -2
- package/docs/integration/directory-discovery-ch.md +5 -1
- package/docs/integration/directory-discovery-en.md +5 -1
- package/docs/integration/editor-ch.md +35 -5
- package/docs/integration/editor-en.md +42 -4
- package/docs/integration/extension-sdk-ch.md +6 -4
- package/docs/integration/extension-sdk-en.md +6 -4
- package/docs/integration/local-integration-ch.md +201 -19
- package/docs/integration/local-integration-en.md +194 -18
- package/docs/integration/network-host-ch.md +75 -0
- package/docs/integration/network-host-en.md +75 -0
- package/docs/integration/shareable-export-ch.md +58 -16
- package/docs/integration/shareable-export-en.md +57 -15
- package/docs/reference/html-compatibility-ch.md +20 -67
- package/docs/reference/html-compatibility-en.md +19 -64
- package/docs/reference/local-interaction-syntax-ch.md +199 -26
- package/docs/reference/local-interaction-syntax-en.md +194 -27
- package/docs/reference/public-api-ch.md +416 -0
- package/docs/reference/public-api-en.md +416 -0
- package/docs/reference/theme-protocol-ch.md +27 -8
- package/docs/reference/theme-protocol-en.md +46 -8
- package/docs/releases/release-0.4.0-ch.md +2 -2
- package/docs/releases/release-0.4.0-en.md +2 -2
- package/docs/releases/release-0.8.0-ch.md +19 -3
- package/docs/releases/release-0.8.0-en.md +19 -3
- package/docs/releases/release-0.9.0-ch.md +44 -0
- package/docs/releases/release-0.9.0-en.md +44 -0
- package/docs/releases/release-0.9.1-ch.md +29 -0
- package/docs/releases/release-0.9.1-en.md +29 -0
- package/examples/component-package/README-ch.md +1 -1
- package/examples/component-package/README.md +1 -1
- package/examples/conformance/README-ch.md +3 -3
- package/examples/conformance/README.md +3 -3
- package/examples/game-2048-package/README-ch.md +3 -9
- package/examples/game-2048-package/README.md +8 -12
- package/examples/integration/README-ch.md +21 -2
- package/examples/integration/README.md +21 -2
- package/examples/integration/extension-sdk/README-ch.md +1 -1
- package/examples/integration/extension-sdk/README.md +1 -1
- package/examples/integration/streaming/index.html +48 -0
- package/examples/integration/streaming/main.js +175 -0
- package/examples/integration/streaming/package.json +13 -0
- package/examples/integration/streaming/worker.js +3 -0
- package/examples/local/README-ch.md +3 -3
- package/examples/local/README.md +2 -2
- package/examples/local/minimal-budget.reactive.md +48 -0
- package/examples/minimal-extension/README-ch.md +78 -0
- package/examples/minimal-extension/README.md +78 -0
- package/examples/minimal-extension/index.html +15 -0
- package/examples/minimal-extension/package.json +26 -0
- package/examples/minimal-extension/sample/document.reactive.md +10 -0
- package/examples/minimal-extension/scripts/build.mjs +32 -0
- package/examples/minimal-extension/scripts/export.mjs +72 -0
- package/examples/minimal-extension/scripts/test-node.mjs +75 -0
- package/examples/minimal-extension/src/extension.tsx +90 -0
- package/examples/minimal-extension/src/preview.tsx +12 -0
- package/examples/minimal-extension/src/source.ts +4 -0
- package/examples/minimal-extension/tsconfig.json +14 -0
- package/examples/network-survey/README.md +200 -0
- package/examples/network-survey/index.html +49 -0
- package/examples/network-survey/package.json +26 -0
- package/examples/network-survey/sample/document.reactive.md +51 -0
- package/examples/network-survey/src/components.tsx +325 -0
- package/examples/network-survey/src/host.ts +316 -0
- package/examples/network-survey/src/main.tsx +91 -0
- package/examples/network-survey/src/source.ts +1 -0
- package/examples/network-survey/tsconfig.json +26 -0
- package/examples/network-survey/vite.config.ts +227 -0
- package/examples/sci-fi-theme/README-ch.md +4 -2
- package/examples/sci-fi-theme/README.md +4 -2
- package/examples/sci-fi-theme/demo/acceptance.reactive.md +454 -0
- package/examples/sci-fi-theme/demo/demo.css +129 -23
- package/examples/sci-fi-theme/demo/document.reactive.md +27 -6
- package/examples/sci-fi-theme/demo/main.tsx +45 -10
- package/examples/sci-fi-theme/docs/design-system-ch.md +6 -6
- package/examples/sci-fi-theme/package.json +2 -1
- package/examples/sci-fi-theme/src/components.css +1064 -154
- package/examples/sci-fi-theme/src/notch.css +142 -0
- package/examples/sci-fi-theme/src/sci-fi.css +3 -1
- package/examples/sci-fi-theme/src/theme.ts +2 -0
- package/examples/sci-fi-theme/src/tokens.css +512 -408
- package/examples/tetris-package/README-ch.md +4 -4
- package/examples/tetris-package/README.md +4 -4
- package/package.json +70 -3
- package/dist-library/LocalDocumentView-6trX7xJc.js +0 -97920
- package/dist-library/compiler--ea2CKQF.js +0 -61
- package/dist-library/component-state-Cq2K5gkS.js +0 -490
- package/dist-library/options-CX5m5n-J.js +0 -115
- package/dist-library/runtime-C-sbfpOX.js +0 -1157
- package/dist-library/types/local/contracts/locale.d.ts +0 -1
- package/dist-library/types/local/contracts/version.d.ts +0 -2
- package/dist-library/types/local/evaluation/dates.d.ts +0 -2
- package/dist-library/types/local/evaluation/expression.d.ts +0 -47
- package/dist-library/types/local/markdown/markdown-structure.d.ts +0 -3
- package/dist-library/types/local/rendering/legacy-component-adapter.d.ts +0 -36
- package/dist-library/types/local/session/incremental.d.ts +0 -48
- package/dist-library/types/local/source/node-walk.d.ts +0 -3
- package/dist-library/types/local/source/text-length.d.ts +0 -13
- package/dist-library/types/local/theme/theme-name.d.ts +0 -3
- package/dist-library/types/local/widgets/visuals.d.ts +0 -25
- package/dist-library/types/react/default-theme.d.ts +0 -6
- package/dist-library/validation-W-bmny-x.js +0 -2253
- package/docs/development/releasing-ch.md +0 -12
- package/docs/development/releasing-en.md +0 -12
- package/docs/integration/codemirror-ch.md +0 -52
- package/docs/integration/codemirror-en.md +0 -29
- package/docs/integration/repository-split-ch.md +0 -40
- package/docs/integration/repository-split-en.md +0 -23
- package/docs/reference/computations-formatting-ch.md +0 -89
- package/docs/reference/computations-formatting-en.md +0 -89
- package/docs/reference/constraints-collections-ch.md +0 -104
- package/docs/reference/constraints-collections-en.md +0 -104
- package/docs/reference/local-components-v2-ch.md +0 -140
- package/docs/reference/local-components-v2-en.md +0 -106
- package/docs/reference/tolerance-ch.md +0 -64
- package/docs/reference/tolerance-en.md +0 -57
- /package/dist-library/types/components/{chart-motion.d.ts → chart/chart-motion.d.ts} +0 -0
- /package/dist-library/types/components/{default-chart-types.d.ts → chart/default-chart-types.d.ts} +0 -0
- /package/dist-library/types/components/{default-chart.d.ts → chart/default-chart.d.ts} +0 -0
- /package/dist-library/types/components/{diagram-inspector.d.ts → diagram/diagram-inspector.d.ts} +0 -0
- /package/dist-library/types/{local/widgets/diagram-layout.d.ts → components/diagram/layout.d.ts} +0 -0
- /package/dist-library/types/components/{mafs-plot-grid.d.ts → plot/mafs-plot-grid.d.ts} +0 -0
- /package/dist-library/types/components/{mafs-visuals.d.ts → plot/mafs-visuals.d.ts} +0 -0
- /package/dist-library/types/components/{use-hydrated.d.ts → shared/use-hydrated.d.ts} +0 -0
- /package/dist-library/types/local/{theme/colors.d.ts → configuration/color-values.d.ts} +0 -0
- /package/dist-library/types/local/evaluation/{collection-functions.d.ts → expression/collection-functions.d.ts} +0 -0
- /package/dist-library/types/local/evaluation/{data-functions.d.ts → expression/data-functions.d.ts} +0 -0
- /package/dist-library/types/local/evaluation/{formatting.d.ts → expression/formatting.d.ts} +0 -0
- /package/dist-library/types/local/{markdown → parsing}/markdown-blocks.d.ts +0 -0
- /package/dist-library/types/local/{widgets → rendering/code}/code-block.d.ts +0 -0
- /package/dist-library/types/local/{widgets → rendering/code}/code-languages.d.ts +0 -0
- /package/dist-library/types/local/{widgets → rendering/image}/image-view.d.ts +0 -0
- /package/dist-library/types/local/{widgets → rendering}/math-view.d.ts +0 -0
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
**English** · [中文](performance-overview-ch.md)
|
|
4
4
|
|
|
5
|
-
Re-tested 2026-
|
|
5
|
+
Re-tested 2026-11-20. Part 1 preserves each round's original record. Part 2's compilation, long-document editing, mixed parsing, incremental sessions, Worker, runtime stages and memory tables were re-measured on the 0.8.0 codebase at commit `8b0ccdc`; the full matrix was run twice on the same machine and the tables use the second pass. The editor and demo now live in separate repositories, so the CM6 full-editor, React rendering and targeted A/B comparisons cannot be re-run here; their 2026-10-29 records are retained and marked.
|
|
6
6
|
|
|
7
7
|
## 1. Direction and outcome of each optimization round
|
|
8
8
|
|
|
9
|
-
The records below are as of each optimization. Cold compilation, steady-state editing and input-to-frame opportunity use different bases, so these numbers cannot be chained into a single speedup ratio. The full matrix and
|
|
9
|
+
The records below are as of each optimization. Cold compilation, steady-state editing and input-to-frame opportunity use different bases, so these numbers cannot be chained into a single speedup ratio. The current full matrix and the 2026-10-29 targeted re-measurements are in part two.
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
| Commit | Direction | Optimization outcome at the time and basis |
|
|
@@ -29,17 +29,17 @@ The historical implementation basis includes Lezer's incremental fragments, GFM
|
|
|
29
29
|
|
|
30
30
|
### Measurement conditions and coverage
|
|
31
31
|
|
|
32
|
-
Node v22.17.0, Intel(R) Core(TM) Ultra 5 125H, Windows x64. Node stress scenarios use independent processes with a 1 GiB old-generation cap; the browser is Edge 135.0.3179.66 in headless mode at a 1440×1000 viewport. Daily development processes remain running on the machine; power policy and CPU frequency were not pinned. Performance scripts run serially.
|
|
32
|
+
Node v22.17.0, Intel(R) Core(TM) Ultra 5 125H, Windows x64. Node stress scenarios use independent processes with a 1 GiB old-generation cap; the browser is Edge 135.0.3179.66 in headless mode at a 1440×1000 viewport. Daily development processes remain running on the machine; power policy and CPU frequency were not pinned. Performance scripts run serially. This round was re-run on 2026-11-20 on the same machine; two full matrices were run back to back and several scenarios varied in both directions, so the tables use the second pass and its per-sample data is in the summary. Stages that depend on the demo or editor repositories were not included.
|
|
33
33
|
|
|
34
34
|
Typically 3 warmups and 15 measurements; the long-line and dedicated over-budget cases use 5/3, and the independent browser Worker uses 2 warmups and 5 measurements; the summary data is authoritative. P95 uses the nearest rank, which equals the maximum sample at 15 samples and is used only to observe the tail. First calls, public snapshot copies, shared Worker results and main-thread rendering are recorded separately.
|
|
35
35
|
|
|
36
36
|
RSS is the process high-water mark and includes Node, modules, input and temporary objects; the post-GC heap is the retained amount, and the two are not interchangeable. JSON UTF-8 message size is an estimate; structured-clone cost is measured separately. Input-to-preview ends at the second requestAnimationFrame frame opportunity after commit; CDP Paint is a paint-phase event, and neither indicates GPU display completion. React phases overlap and cannot be summed.
|
|
37
37
|
|
|
38
|
-
###
|
|
38
|
+
### Targeted re-measurement from 2026-10-29: dynamic rows and deep nesting (historical, not re-run)
|
|
39
39
|
|
|
40
|
-
The baseline is the `4a8f1ea` production package saved at the start of
|
|
40
|
+
The baseline is the `4a8f1ea` production package saved at the start of that round, and post-change data comes from that round's final build; code hashes and condensed results are in `benchmarks/dynamic-depth-2026-10-29.json`. That round re-measured dynamic lists, dynamic tables, deep containers, protocol recovery and sustained-edit memory. The original record is kept here; current measurements are in the tables below.
|
|
41
41
|
|
|
42
|
-
Each browser group uses 3 warmups and 15 measurements. Before-change samples are retained from
|
|
42
|
+
Each browser group uses 3 warmups and 15 measurements. Before-change samples are retained from that round's first paired measurement, and after-change samples were re-measured on the final build. The table shows median/P95 in ms. Input is driven by an independent textarea fixture to compare the Worker-to-React preview path; CM6 and deep preview get separate real-browser functional verification.
|
|
43
43
|
|
|
44
44
|
| Dynamic scenario | Worker compile, before → after | Input to preview frame opportunity, before → after | Median response size, before → after |
|
|
45
45
|
| --- | --- | --- | --- |
|
|
@@ -55,7 +55,7 @@ Node in-process Worker-handler comparisons also use 3 warmups and 15 measurement
|
|
|
55
55
|
| 500-row dynamic table, equal-length edit | 111/202 → 86/106 |
|
|
56
56
|
| 500-row dynamic table, shift edit | 115/230 → 110/185 |
|
|
57
57
|
|
|
58
|
-
This batch's Node shift list regressed; a separate new-process comparison gave 324/508 → 124/255 ms. Both batches show clear jitter, so all raw results are kept and
|
|
58
|
+
This batch's Node shift list regressed; a separate new-process comparison gave 324/508 → 124/255 ms. Both batches show clear jitter, so all raw results are kept and that round computes no unified speedup ratio. The browser table uses final-build measurements.
|
|
59
59
|
|
|
60
60
|
Deep Node comparisons use independent processes, 1 warmup and 3 measurements, through the public `compileLocal()` path. The component limit remains 100 levels and the Markdown limit 1000 levels; over-limit rows record rejection time.
|
|
61
61
|
|
|
@@ -79,9 +79,9 @@ A 1000-item dynamic list edited 500 times consecutively: post-GC heap growth ove
|
|
|
79
79
|
|
|
80
80
|
The implementation references [Lezer's context and incremental reuse constraints](https://lezer.codemirror.net/docs/guide/) and [V8's iterative traversal approach](https://v8.dev/blog/json-stringify). Flat records reference [the object index table of @ungap/structured-clone](https://github.com/ungap/structured-clone/blob/main/esm/serialize.js); that implementation's visitor is still recursive, whereas this round implements iterative traversal for the compiler's ordinary data with no new dependency.
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
That round's gates: 116 core test files with 1534 tests and 16 Demo files with 254 tests pass; type checking, production/standalone/declaration builds, Demo builds, public package checks and offline packed consumption pass; documentation links and `git diff --check` pass. The deep stress unit tests set a separate 30-second timeout, and performance statistics come from production-package scripts.
|
|
83
83
|
|
|
84
|
-
Reproduce the targeted tests:
|
|
84
|
+
Reproduce the targeted tests (the commands below belong to that round; the CM6 fixture used by `--preview` moved to the editor repository):
|
|
85
85
|
|
|
86
86
|
```powershell
|
|
87
87
|
npm run build
|
|
@@ -98,58 +98,58 @@ node scripts/benchmark-editing-memory.mjs
|
|
|
98
98
|
|
|
99
99
|
Per-sample results and failure reproductions are kept in `artifacts/dynamic-depth/`. The old-package snapshot is a local artifact; re-running the comparison requires saving an identical baseline production package first.
|
|
100
100
|
|
|
101
|
-
### Full compilation and extreme input (
|
|
101
|
+
### Full compilation and extreme input (8b0ccdc, 45 scenarios)
|
|
102
102
|
|
|
103
103
|
Calls the public compileLocal; timing includes final result construction and excludes input generation, checking and GC. The node budget defaults to 10000; scenarios marked raised use 250000. Character counts are UTF-16 code units. Budget rejections are listed separately as expected outcomes, and all scenarios should exit normally.
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
| Scenario ID | Characters | Result / nodes | First ms | Steady-state median / P95 ms | First-call peak RSS MiB |
|
|
107
107
|
| --- | --- | --- | --- | --- | --- |
|
|
108
|
-
| plain-10000 | 10000 | success / 2 |
|
|
109
|
-
| plain-100000 | 100000 | success / 2 |
|
|
110
|
-
| plain-500000 | 500000 | success / 2 |
|
|
111
|
-
| plain-1000000 | 1000000 | success / 2 |
|
|
112
|
-
| plain-1000001 | 1000001 | local.budget.document |
|
|
113
|
-
| article-10 | 1598 | success / 161 |
|
|
114
|
-
| article-100 | 15550 | success / 1601 |
|
|
115
|
-
| article-600 | 94050 | success / 9601 |
|
|
116
|
-
| article-2000 | 315852 | local.budget.nodes |
|
|
117
|
-
| article-2000-raised | 315852 | success / 32001 |
|
|
118
|
-
| controls-1000 | 68779 | success / 1000 |
|
|
119
|
-
| controls-5000 | 352779 | success / 5000 |
|
|
120
|
-
| controls-10000 | 707779 | success / 10000 |
|
|
121
|
-
| controls-10001 | 707852 | local.budget.nodes |
|
|
122
|
-
| controls-12000 | 853779 | local.budget.nodes |
|
|
123
|
-
| controls-10000-raised | 707779 | success / 10000 |
|
|
124
|
-
| controls-12000-raised | 853779 | success / 12000 |
|
|
125
|
-
| shared-controls-5000 | 270000 | success / 5000 |
|
|
126
|
-
| conflicting-controls-5000 | 329999 | local.initial.duplicate-peers |
|
|
127
|
-
| expressions-1000 | 21960 | success / 4001 |
|
|
128
|
-
| expressions-5000 | 113960 | local.budget.nodes |
|
|
129
|
-
| expressions-5000-raised | 113960 | success / 20001 |
|
|
130
|
-
| paragraphs-1000 | 6000 | success / 2000 |
|
|
131
|
-
| paragraphs-5000 | 30000 | success / 10000 |
|
|
132
|
-
| paragraphs-10000 | 60000 | local.budget.nodes |
|
|
133
|
-
| paragraphs-20000 | 120000 | local.budget.nodes |
|
|
134
|
-
| paragraphs-100000 | 600000 | local.budget.nodes |
|
|
135
|
-
| paragraphs-100000-raised | 600000 | success / 200000 |
|
|
136
|
-
| formatted-paragraphs-5000 | 285000 | local.budget.nodes |
|
|
137
|
-
| formatted-paragraphs-5000-raised | 285000 | success / 40000 |
|
|
138
|
-
| containers-50 | 956 | success / 52 |
|
|
139
|
-
| containers-100 | 1906 | success / 102 |
|
|
140
|
-
| containers-101 | 1925 | local.
|
|
141
|
-
| containers-1000 | 19006 | local.
|
|
142
|
-
| unclosed-1000 | 9004 | local.
|
|
143
|
-
| markdown-depth-100 | 204 | success / 102 |
|
|
144
|
-
| markdown-depth-500 | 1004 | success / 502 |
|
|
145
|
-
| markdown-depth-1000 | 2004 | success / 1002 |
|
|
146
|
-
| markdown-depth-1500 | 3004 | local.budget.markdown-depth |
|
|
147
|
-
| markdown-depth-2000 | 4004 | local.budget.markdown-depth |
|
|
148
|
-
| markdown-depth-5000 | 10004 | local.budget.markdown-depth |
|
|
149
|
-
| math-1000 | 16000 | success / 2000 |
|
|
150
|
-
| table-1000 | 28910 | success / 5008 |
|
|
151
|
-
| computed-chain-1000 | 45839 | success / 3 |
|
|
152
|
-
| computed-chain-5000 | 237839 | success / 3 |
|
|
108
|
+
| plain-10000 | 10000 | success / 2 | 12.14 | 0.17 / 0.83 | 67.89 |
|
|
109
|
+
| plain-100000 | 100000 | success / 2 | 18.77 | 0.62 / 1.32 | 69.16 |
|
|
110
|
+
| plain-500000 | 500000 | success / 2 | 22.23 | 3.73 / 6.79 | 70.13 |
|
|
111
|
+
| plain-1000000 | 1000000 | success / 2 | 21.02 | 5.36 / 6.59 | 71.16 |
|
|
112
|
+
| plain-1000001 | 1000001 | local.budget.document | 9.21 | 0.05 / 0.21 | 69.45 |
|
|
113
|
+
| article-10 | 1598 | success / 161 | 61.92 | 6.33 / 11.67 | 73.51 |
|
|
114
|
+
| article-100 | 15550 | success / 1601 | 125.82 | 28.62 / 42.80 | 83.66 |
|
|
115
|
+
| article-600 | 94050 | success / 9601 | 450.76 | 339.55 / 406.06 | 125.39 |
|
|
116
|
+
| article-2000 | 315852 | local.budget.nodes | 738.17 | 518.00 / 829.54 | 160.56 |
|
|
117
|
+
| article-2000-raised | 315852 | success / 32001 | 1147.08 | 838.71 / 1054.24 | 177.64 |
|
|
118
|
+
| controls-1000 | 68779 | success / 1000 | 264.14 | 136.45 / 156.61 | 119.97 |
|
|
119
|
+
| controls-5000 | 352779 | success / 5000 | 921.47 | 831.04 / 905.37 | 206.09 |
|
|
120
|
+
| controls-10000 | 707779 | success / 10000 | 1745.31 | 1477.54 / 1791.96 | 342.32 |
|
|
121
|
+
| controls-10001 | 707852 | local.budget.nodes | 197.23 | 149.45 / 173.64 | 115.06 |
|
|
122
|
+
| controls-12000 | 853779 | local.budget.nodes | 259.77 | 179.85 / 215.00 | 119.33 |
|
|
123
|
+
| controls-10000-raised | 707779 | success / 10000 | 1652.14 | 1502.26 / 1986.24 | 338.87 |
|
|
124
|
+
| controls-12000-raised | 853779 | success / 12000 | 2195.87 | 1897.38 / 2221.06 | 391.69 |
|
|
125
|
+
| shared-controls-5000 | 270000 | success / 5000 | 845.98 | 629.16 / 813.83 | 215.34 |
|
|
126
|
+
| conflicting-controls-5000 | 329999 | local.initial.duplicate-peers | 856.53 | 684.66 / 872.58 | 198.07 |
|
|
127
|
+
| expressions-1000 | 21960 | success / 4001 | 259.66 | 84.07 / 131.19 | 106.48 |
|
|
128
|
+
| expressions-5000 | 113960 | local.budget.nodes | 435.23 | 194.96 / 225.71 | 146.44 |
|
|
129
|
+
| expressions-5000-raised | 113960 | success / 20001 | 712.13 | 502.46 / 696.91 | 157.50 |
|
|
130
|
+
| paragraphs-1000 | 6000 | success / 2000 | 35.12 | 10.68 / 18.20 | 78.88 |
|
|
131
|
+
| paragraphs-5000 | 30000 | success / 10000 | 101.65 | 54.03 / 60.55 | 92.74 |
|
|
132
|
+
| paragraphs-10000 | 60000 | local.budget.nodes | 18.27 | 1.79 / 7.25 | 72.91 |
|
|
133
|
+
| paragraphs-20000 | 120000 | local.budget.nodes | 17.83 | 2.33 / 4.25 | 72.98 |
|
|
134
|
+
| paragraphs-100000 | 600000 | local.budget.nodes | 23.95 | 6.92 / 11.95 | 79.15 |
|
|
135
|
+
| paragraphs-100000-raised | 600000 | success / 200000 | 1839.39 | 2007.70 / 2364.49 | 291.53 |
|
|
136
|
+
| formatted-paragraphs-5000 | 285000 | local.budget.nodes | 609.26 | 507.34 / 594.79 | 176.37 |
|
|
137
|
+
| formatted-paragraphs-5000-raised | 285000 | success / 40000 | 1012.14 | 828.23 / 981.74 | 206.25 |
|
|
138
|
+
| containers-50 | 956 | success / 52 | 75.31 | 16.42 / 19.85 | 79.57 |
|
|
139
|
+
| containers-100 | 1906 | success / 102 | 106.02 | 33.63 / 40.69 | 82.22 |
|
|
140
|
+
| containers-101 | 1925 | local.budget.nesting | 57.15 | 11.00 / 20.12 | 77.44 |
|
|
141
|
+
| containers-1000 | 19006 | local.budget.nesting | 213.41 | 110.43 / 134.72 | 101.30 |
|
|
142
|
+
| unclosed-1000 | 9004 | local.budget.nesting | 130.10 | 63.69 / 81.02 | 82.53 |
|
|
143
|
+
| markdown-depth-100 | 204 | success / 102 | 35.97 | 3.03 / 5.84 | 70.54 |
|
|
144
|
+
| markdown-depth-500 | 1004 | success / 502 | 53.59 | 8.77 / 14.23 | 78.91 |
|
|
145
|
+
| markdown-depth-1000 | 2004 | success / 1002 | 80.30 | 19.77 / 31.34 | 86.86 |
|
|
146
|
+
| markdown-depth-1500 | 3004 | local.budget.markdown-depth | 25.95 | 1.89 / 5.13 | 72.34 |
|
|
147
|
+
| markdown-depth-2000 | 4004 | local.budget.markdown-depth | 30.74 | 2.49 / 4.45 | 73.88 |
|
|
148
|
+
| markdown-depth-5000 | 10004 | local.budget.markdown-depth | 49.46 | 4.97 / 7.78 | 82.66 |
|
|
149
|
+
| math-1000 | 16000 | success / 2000 | 406.93 | 194.00 / 218.00 | 121.20 |
|
|
150
|
+
| table-1000 | 28910 | success / 5008 | 196.79 | 60.20 / 80.78 | 96.14 |
|
|
151
|
+
| computed-chain-1000 | 45839 | success / 3 | 296.67 | 137.38 / 168.25 | 118.54 |
|
|
152
|
+
| computed-chain-5000 | 237839 | success / 3 | 902.24 | 625.79 / 751.97 | 208.96 |
|
|
153
153
|
|
|
154
154
|
|
|
155
155
|
### Long-document editing across block types (24 scenarios)
|
|
@@ -158,30 +158,30 @@ The same target block sits among 1000 ordinary paragraphs; version numbers have
|
|
|
158
158
|
|
|
159
159
|
| Target block | Single-block full ms | Long-document full ms | Session median / P95 ms | Final mode | Reused blocks |
|
|
160
160
|
| --- | --- | --- | --- | --- | --- |
|
|
161
|
-
| Ordinary paragraph, about 512 characters | 0.
|
|
162
|
-
| Ordinary paragraph, about 8 Ki characters | 0.
|
|
163
|
-
| Formatted paragraph, about 512 characters |
|
|
164
|
-
| Level-2 heading, about 80 characters | 0.
|
|
165
|
-
| Unordered list, 20 items |
|
|
166
|
-
| Unordered list, 100 items |
|
|
167
|
-
| Ordered list, 20 items |
|
|
168
|
-
| Markdown table, 20×4 |
|
|
169
|
-
| Markdown table, 100×4 |
|
|
170
|
-
| Markdown table, 200×4 |
|
|
171
|
-
| Blockquote, 10 paragraphs |
|
|
172
|
-
| Fenced code, 60 lines |
|
|
173
|
-
| Fenced code, 300 lines |
|
|
174
|
-
| Indented code, 60 lines | 1.
|
|
175
|
-
| Display formula, 20 items | 3.
|
|
176
|
-
| Display formula, 80 items |
|
|
177
|
-
| Expression paragraph, 20 interpolations | 2.
|
|
178
|
-
| Slider initial value change |
|
|
179
|
-
| Panel interior, 50 paragraphs |
|
|
180
|
-
| ReactiveMD table, 20×4 |
|
|
181
|
-
| Bar chart data, 20 rows |
|
|
182
|
-
| Plot formula, 1 curve |
|
|
183
|
-
| Diagram node body, 20 nodes |
|
|
184
|
-
| Fenced delimiter change, 60 lines of code | 1.
|
|
161
|
+
| Ordinary paragraph, about 512 characters | 0.22 | 11.05 | 15.21 / 22.42 | incremental | 1000 |
|
|
162
|
+
| Ordinary paragraph, about 8 Ki characters | 0.24 | 9.90 | 15.94 / 21.03 | incremental | 1000 |
|
|
163
|
+
| Formatted paragraph, about 512 characters | 3.36 | 40.03 | 20.27 / 23.92 | incremental | 1000 |
|
|
164
|
+
| Level-2 heading, about 80 characters | 0.83 | 37.30 | 16.83 / 20.78 | incremental | 1000 |
|
|
165
|
+
| Unordered list, 20 items | 1.93 | 23.12 | 14.36 / 22.48 | incremental | 1000 |
|
|
166
|
+
| Unordered list, 100 items | 7.19 | 25.18 | 20.96 / 29.45 | incremental | 1000 |
|
|
167
|
+
| Ordered list, 20 items | 1.66 | 22.02 | 15.24 / 20.90 | incremental | 1000 |
|
|
168
|
+
| Markdown table, 20×4 | 2.43 | 22.43 | 15.41 / 20.44 | incremental | 1000 |
|
|
169
|
+
| Markdown table, 100×4 | 5.72 | 32.02 | 26.48 / 33.35 | incremental | 1000 |
|
|
170
|
+
| Markdown table, 200×4 | 15.04 | 37.64 | 33.75 / 63.07 | incremental | 1000 |
|
|
171
|
+
| Blockquote, 10 paragraphs | 2.12 | 33.93 | 14.74 / 22.42 | incremental | 1000 |
|
|
172
|
+
| Fenced code, 60 lines | 1.64 | 39.44 | 17.34 / 21.56 | incremental | 1000 |
|
|
173
|
+
| Fenced code, 300 lines | 3.47 | 41.13 | 18.93 / 23.55 | incremental | 1000 |
|
|
174
|
+
| Indented code, 60 lines | 1.58 | 93.63 | 20.17 / 41.95 | incremental | 1000 |
|
|
175
|
+
| Display formula, 20 items | 3.53 | 72.09 | 19.64 / 35.87 | incremental | 1000 |
|
|
176
|
+
| Display formula, 80 items | 8.07 | 72.58 | 24.87 / 42.12 | incremental | 1000 |
|
|
177
|
+
| Expression paragraph, 20 interpolations | 2.51 | 68.18 | 18.68 / 32.43 | incremental | 1000 |
|
|
178
|
+
| Slider initial value change | 1.73 | 79.63 | 91.34 / 144.33 | full | 0 |
|
|
179
|
+
| Panel interior, 50 paragraphs | 6.03 | 79.72 | 74.44 / 83.49 | full | 0 |
|
|
180
|
+
| ReactiveMD table, 20×4 | 4.87 | 77.61 | 96.41 / 127.31 | full | 0 |
|
|
181
|
+
| Bar chart data, 20 rows | 4.29 | 67.02 | 81.17 / 105.50 | full | 0 |
|
|
182
|
+
| Plot formula, 1 curve | 3.64 | 71.66 | 84.50 / 112.96 | full | 0 |
|
|
183
|
+
| Diagram node body, 20 nodes | 9.06 | 66.52 | 70.31 / 107.23 | full | 0 |
|
|
184
|
+
| Fenced delimiter change, 60 lines of code | 1.49 | 39.16 | 54.30 / 68.21 | full | 0 |
|
|
185
185
|
|
|
186
186
|
|
|
187
187
|
### Fast/general mixed parsing and long lines
|
|
@@ -190,52 +190,73 @@ Covers simple blocks interleaved with links and escapes, native and component ta
|
|
|
190
190
|
|
|
191
191
|
| Scenario | Median / P95 ms | Process peak RSS MiB |
|
|
192
192
|
| --- | --- | --- |
|
|
193
|
-
| ordinary-1000 |
|
|
194
|
-
| mixed-80 |
|
|
195
|
-
| table-1000 |
|
|
196
|
-
| component-table-500 |
|
|
197
|
-
| component-dynamic-table-500 |
|
|
198
|
-
| controls-5000 |
|
|
199
|
-
| indented-line-16000 |
|
|
200
|
-
| indented-line-64000 |
|
|
201
|
-
| indented-line-256000 |
|
|
202
|
-
| over-budget-list-50000 |
|
|
193
|
+
| ordinary-1000 | 12.81 / 19.20 | 108.34 |
|
|
194
|
+
| mixed-80 | 53.82 / 67.16 | 167.36 |
|
|
195
|
+
| table-1000 | 84.78 / 97.55 | 178.88 |
|
|
196
|
+
| component-table-500 | 41.29 / 64.94 | 163.93 |
|
|
197
|
+
| component-dynamic-table-500 | 35.70 / 40.62 | 119.51 |
|
|
198
|
+
| controls-5000 | 671.72 / 1066.59 | 548.40 |
|
|
199
|
+
| indented-line-16000 | 10.64 / 12.23 | 93.00 |
|
|
200
|
+
| indented-line-64000 | 21.97 / 31.13 | 91.98 |
|
|
201
|
+
| indented-line-256000 | 75.08 / 85.49 | 89.41 |
|
|
202
|
+
| over-budget-list-50000 | 349.35 / 352.36 | 532.13 |
|
|
203
203
|
|
|
204
204
|
|
|
205
205
|
Cache recovery of an independent body after 200 consecutive component-context changes:
|
|
206
206
|
|
|
207
207
|
| Context edit median / P95 ms | Index rebuilds during consecutive changes | Restore body ms | Index builds during restore |
|
|
208
208
|
| --- | --- | --- | --- |
|
|
209
|
-
|
|
|
209
|
+
| 52.80 / 93.53 | 0 | 124.58 | 1 |
|
|
210
210
|
|
|
211
211
|
|
|
212
212
|
Full compilation scale for pure blocks:
|
|
213
213
|
|
|
214
214
|
| Scenario | Median / P95 ms | Peak RSS MiB |
|
|
215
215
|
| --- | --- | --- |
|
|
216
|
-
| bullet-100 |
|
|
217
|
-
| bullet-500 |
|
|
218
|
-
| bullet-1500 |
|
|
219
|
-
| table-100 |
|
|
220
|
-
| table-500 |
|
|
221
|
-
| table-1000 |
|
|
222
|
-
| component-table-100 |
|
|
223
|
-
| component-table-500 |
|
|
216
|
+
| bullet-100 | 8.27 / 14.95 | 84.77 |
|
|
217
|
+
| bullet-500 | 26.40 / 31.44 | 133.75 |
|
|
218
|
+
| bullet-1500 | 90.62 / 124.96 | 191.04 |
|
|
219
|
+
| table-100 | 8.71 / 14.94 | 100.35 |
|
|
220
|
+
| table-500 | 39.94 / 49.41 | 142.10 |
|
|
221
|
+
| table-1000 | 89.38 / 133.26 | 195.25 |
|
|
222
|
+
| component-table-100 | 12.16 / 20.38 | 103.84 |
|
|
223
|
+
| component-table-500 | 46.24 / 61.33 | 145.66 |
|
|
224
224
|
|
|
225
225
|
|
|
226
226
|
Full compilation versus session editing in the same build, including full snapshot publishing:
|
|
227
227
|
|
|
228
228
|
| Document | Full median ms | Session median ms | First session ms | Compiled / reused blocks |
|
|
229
229
|
| --- | --- | --- | --- | --- |
|
|
230
|
-
| paragraphs-5000 |
|
|
231
|
-
| formatted-paragraphs-1000 |
|
|
232
|
-
| article-600 |
|
|
233
|
-
| article-2000 |
|
|
230
|
+
| paragraphs-5000 | 70.04 | 81.39 | 365.93 | 1 / 4999 |
|
|
231
|
+
| formatted-paragraphs-1000 | 147.40 | 58.84 | 390.44 | 1 / 999 |
|
|
232
|
+
| article-600 | 213.85 | 74.87 | 609.83 | 1 / 1799 |
|
|
233
|
+
| article-2000 | 767.36 | 271.56 | 1196.28 | 1 / 5999 |
|
|
234
234
|
|
|
235
235
|
|
|
236
|
-
###
|
|
236
|
+
### Row reuse and patch cost (8b0ccdc)
|
|
237
237
|
|
|
238
|
-
The
|
|
238
|
+
The current production package runs the production Worker handler inside Node, one session per scenario, 3 warmups and 15 measurements; responses are applied only after structuredClone. Worker timing excludes cross-thread transfer; the clone column is local copy time. equal is a fixed-length middle edit, shift alternately adds and removes characters and shifts later ranges, and rewrite changes every row.
|
|
239
|
+
|
|
240
|
+
| Scenario | Worker median ms | Compile median ms | Encode median ms | Clone median ms | Patch apply ms | Response B | Shared nodes |
|
|
241
|
+
| --- | --- | --- | --- | --- | --- | --- | --- |
|
|
242
|
+
| list-equal | 86.07 | 79.00 | 6.00 | 0.15 | 4.13 | 14900 | 5998 |
|
|
243
|
+
| list-shift | 116.62 | 110.00 | 5.00 | 0.49 | 5.71 | 38001 | 3002 |
|
|
244
|
+
| table-equal | 50.50 | 47.00 | 4.00 | 0.16 | 3.05 | 8565 | 3504 |
|
|
245
|
+
| table-shift | 68.20 | 59.00 | 9.00 | 0.45 | 3.45 | 20156 | 1759 |
|
|
246
|
+
| dynamic-list-equal | 167.81 | 157.00 | 10.00 | 0.27 | 6.39 | 15436 | 7997 |
|
|
247
|
+
| dynamic-list-shift | 204.73 | 197.00 | 10.00 | 0.69 | 7.92 | 38536 | 4003 |
|
|
248
|
+
| dynamic-table-equal | 60.61 | 57.00 | 4.00 | 0.19 | 2.68 | 8681 | 3505 |
|
|
249
|
+
| dynamic-table-shift | 66.12 | 63.00 | 3.00 | 0.36 | 3.01 | 20274 | 1760 |
|
|
250
|
+
| paragraphs-equal | 8.41 | 7.00 | 1.00 | 0.11 | 1.19 | 11184 | 1602 |
|
|
251
|
+
| list-rewrite | 127.97 | 104.00 | 28.00 | 21.97 | 0.00 | 906084 | 0 |
|
|
252
|
+
|
|
253
|
+
Equal-length single-row edits mainly reduce transfer, main-thread patch application and React node replacement. Shift edits must update later ranges and still clone objects; a whole-block rewrite encodes first and then decides to send a full result, so Worker encoding cost may rise. Real-browser end-to-end latency is in the next section; Node handler data cannot replace it.
|
|
254
|
+
|
|
255
|
+
The 2026-10-29 round ran the same comparison against a saved f7a7ab8 production package. That baseline is not retained in this repository, so it was not re-run this round; its results remain in `benchmarks/performance-overview-2026-10-29.json`.
|
|
256
|
+
|
|
257
|
+
### 2026-10-29 row reuse and patch cost A/B (historical, not re-run)
|
|
258
|
+
|
|
259
|
+
The baseline is that round's saved f7a7ab8 production package. One session per scenario, 3 warmups and 15 measurements. The production Worker handler runs inside Node; responses are applied only after structuredClone. Worker timing excludes cross-thread transfer; the clone column is local copy time. equal is a fixed-length middle edit, shift alternately adds and removes characters and shifts later ranges, and rewrite changes every row.
|
|
239
260
|
|
|
240
261
|
| Scenario | Worker median ms: before → after | Clone median ms: before → after | Patch apply ms: before → after | Response B: before → after | Shared nodes: before → after |
|
|
241
262
|
| --- | --- | --- | --- | --- | --- |
|
|
@@ -251,7 +272,7 @@ The baseline is the saved f7a7ab8 production package. One session per scenario,
|
|
|
251
272
|
| list-rewrite | 73.39 → 97.10 | 18.77 → 21.86 | 28.70 → 0.00 | 1090461 → 905965 | 4 → 0 |
|
|
252
273
|
|
|
253
274
|
|
|
254
|
-
|
|
275
|
+
In that round, equal-length single-row edits mainly reduced transfer, main-thread patch application and React node replacement. Shift edits must update later ranges and still clone objects; a whole-block rewrite encodes first and then decides to send a full result, so Worker encoding cost may rise. The real-browser measurements in the previous section cannot be replaced by Node handler data for end-to-end latency.
|
|
255
276
|
|
|
256
277
|
### Real Worker and end-to-end preview
|
|
257
278
|
|
|
@@ -259,21 +280,21 @@ An independent module Worker per input, 2 warmups and 5 measurements. The table
|
|
|
259
280
|
|
|
260
281
|
| Scenario | Worker median / P95 ms | Round-trip median / P95 ms | Result |
|
|
261
282
|
| --- | --- | --- | --- |
|
|
262
|
-
| article-100 |
|
|
263
|
-
| article-600 |
|
|
264
|
-
| controls-1000 |
|
|
265
|
-
| controls-5000 |
|
|
266
|
-
| controls-10000 |
|
|
267
|
-
| paragraphs-5000 |
|
|
268
|
-
| plain-1000000 |
|
|
269
|
-
| markdown-depth-500 | no successful samples | no successful samples |
|
|
270
|
-
| markdown-depth-1000 |
|
|
271
|
-
| markdown-depth-2000 |
|
|
283
|
+
| article-100 | 28.90 / 39.40 | 31.40 / 43.20 | success |
|
|
284
|
+
| article-600 | 140.80 / 165.50 | 159.50 / 182.30 | success |
|
|
285
|
+
| controls-1000 | 100.80 / 117.50 | 107.30 / 122.60 | success |
|
|
286
|
+
| controls-5000 | 383.70 / 613.30 | 415.60 / 638.60 | success |
|
|
287
|
+
| controls-10000 | 804.30 / 871.20 | 870.50 / 925.80 | success |
|
|
288
|
+
| paragraphs-5000 | 36.40 / 45.80 | 52.40 / 61.70 | success |
|
|
289
|
+
| plain-1000000 | 9.00 / 12.50 | 12.80 / 17.80 | success |
|
|
290
|
+
| markdown-depth-500 | no successful samples | no successful samples | RangeError |
|
|
291
|
+
| markdown-depth-1000 | no successful samples | no successful samples | RangeError |
|
|
292
|
+
| markdown-depth-2000 | 4.10 / 5.30 | 4.40 / 5.50 | local.budget.markdown-depth |
|
|
272
293
|
|
|
273
294
|
|
|
274
|
-
Deep Markdown still has separate limits in the browser: the compilation
|
|
295
|
+
Deep Markdown still has separate limits in the browser: the compilation results of the 500- and 1000-level cases trigger a RangeError (call-stack overflow) through native postMessage; 2000 levels is rejected by the depth budget and returns normally. A subsequent ordinary request on the same Worker recovers. A successful Node compilation does not mean the result graph can be cloned and rendered directly in the browser; the public scheduler negotiates `flat-v1` flat results.
|
|
275
296
|
|
|
276
|
-
|
|
297
|
+
**2026-10-29 historical record:** the following comparison uses the same controlled input fixture, a real module Worker and the production React profiling preview, comparing f7a7ab8 with that round's build. 3 warmups and 15 measurements per scenario, with version order alternating for regular scenarios; the dynamic table was re-measured after a pause in before/after order, so time-of-day drift exists. It requires the saved baseline package and was not re-run this round. The fixture isolates compilation and preview; real CM6 typing is measured separately in the next section.
|
|
277
298
|
|
|
278
299
|
| Scenario | Worker median / P95 ms: before → after | Input-to-frame opportunity ms: before → after | Response median B: before → after |
|
|
279
300
|
| --- | --- | --- | --- |
|
|
@@ -286,9 +307,9 @@ The following uses the same controlled input fixture, a real module Worker and t
|
|
|
286
307
|
| Dynamic table | 124.00 / 220.00 → 115.00 / 377.00 | 233.40 / 398.40 → 170.70 / 450.50 | 608116 → 8685 |
|
|
287
308
|
|
|
288
309
|
|
|
289
|
-
###
|
|
310
|
+
### 2026-10-29 CM6 full editor and rendering phases (historical, not re-run)
|
|
290
311
|
|
|
291
|
-
|
|
312
|
+
That round used the then-current single CM6 editor, the shared author-analysis Worker, the real LocalPreview, a stateful session and native input in the middle. The CM6 editor and its benchmark fixtures have moved to the ReactiveMD-Editor repository. React phases are instrumented only in the benchmark build; the production library does not contain these hooks. Later positions shift as editing grows.
|
|
292
313
|
|
|
293
314
|
| Scenario | Input-to-frame opportunity median / P95 ms | Input-to-dispatch ms | Worker round-trip ms | Receive and apply ms | Editor render ms | Preview render ms |
|
|
294
315
|
| --- | --- | --- | --- | --- | --- | --- |
|
|
@@ -327,20 +348,20 @@ This group is a Vite development fixture, 5 warmups and 15 measurements; it sepa
|
|
|
327
348
|
|
|
328
349
|
| Phase | Median ms | P95 ms |
|
|
329
350
|
| --- | --- | --- |
|
|
330
|
-
| compile:interactive-article |
|
|
331
|
-
| update:runtime-set | 0.
|
|
332
|
-
| plot:3-curves-200-samples | 0.
|
|
333
|
-
| render:final |
|
|
334
|
-
| interaction:update-plot-render |
|
|
335
|
-
| locality:100-sections |
|
|
336
|
-
| locality:1-section | 4.
|
|
337
|
-
| locality:unreferenced |
|
|
338
|
-
| visuals:10-tables |
|
|
339
|
-
| visuals:1-table | 4.
|
|
340
|
-
| visuals:unreferenced |
|
|
341
|
-
| charts:4-charts |
|
|
342
|
-
| charts:1-chart |
|
|
343
|
-
| charts:unreferenced |
|
|
351
|
+
| compile:interactive-article | 22.1000 | 27.6000 |
|
|
352
|
+
| update:runtime-set | 0.0008 | 0.0021 |
|
|
353
|
+
| plot:3-curves-200-samples | 0.2850 | 0.4600 |
|
|
354
|
+
| render:final | 7.5000 | 22.7000 |
|
|
355
|
+
| interaction:update-plot-render | 11.2000 | 14.2000 |
|
|
356
|
+
| locality:100-sections | 8.3000 | 25.8000 |
|
|
357
|
+
| locality:1-section | 4.3000 | 5.9000 |
|
|
358
|
+
| locality:unreferenced | 9.7000 | 11.9000 |
|
|
359
|
+
| visuals:10-tables | 9.2000 | 20.6000 |
|
|
360
|
+
| visuals:1-table | 4.4000 | 6.9000 |
|
|
361
|
+
| visuals:unreferenced | 3.7000 | 5.6000 |
|
|
362
|
+
| charts:4-charts | 8.6000 | 13.7000 |
|
|
363
|
+
| charts:1-chart | 5.1000 | 6.6000 |
|
|
364
|
+
| charts:unreferenced | 3.2000 | 4.2000 |
|
|
344
365
|
|
|
345
366
|
|
|
346
367
|
### Sustained-edit memory, budgets and protocol recovery
|
|
@@ -349,16 +370,16 @@ Node uses independent child processes and performs an explicit GC before each sn
|
|
|
349
370
|
|
|
350
371
|
| Scenario | Count / scale | Retained heap after GC MiB | After releasing session MiB | Steady-state heap growth MiB |
|
|
351
372
|
| --- | --- | --- | --- | --- |
|
|
352
|
-
| longEdit | 500 |
|
|
353
|
-
| longRows | 500 |
|
|
354
|
-
| cacheEviction | 260 |
|
|
355
|
-
| rapidCancel | 120 |
|
|
356
|
-
| longText | 1000000 |
|
|
357
|
-
| manyComponents | 5000 controls / 352779 characters | 29.
|
|
358
|
-
| deepContainers | 1000/1001 levels |
|
|
373
|
+
| longEdit | 500 | 25.615 | 17.316 | 0.302 |
|
|
374
|
+
| longRows | 500 | 24.663 | 13.721 | 0.175 |
|
|
375
|
+
| cacheEviction | 260 | 25.710 | 19.179 | n/a |
|
|
376
|
+
| rapidCancel | 120 | 24.262 | 15.328 | n/a |
|
|
377
|
+
| longText | 1000000 | 13.756 | 13.741 | n/a |
|
|
378
|
+
| manyComponents | 5000 controls / 352779 characters | 29.973 | 15.056 | n/a |
|
|
379
|
+
| deepContainers | 1000/1001 levels | n/a | 13.029 | n/a |
|
|
359
380
|
|
|
360
381
|
|
|
361
|
-
CM6 main-thread heap, with the probe array cleared and GC through CDP while host compilation state stays mounted; Worker heap not measured:
|
|
382
|
+
**2026-10-29 historical record:** CM6 main-thread heap, with the probe array cleared and GC through CDP while host compilation state stays mounted; Worker heap not measured. This data depends on the split editor repository and was not re-measured this round:
|
|
362
383
|
|
|
363
384
|
| Checkpoint | Heap after GC MiB | Source DOM |
|
|
364
385
|
| --- | --- | --- |
|
|
@@ -367,36 +388,35 @@ CM6 main-thread heap, with the probe array cleared and GC through CDP while host
|
|
|
367
388
|
| editor-unmounted-host-retained | 13.31 | 0 |
|
|
368
389
|
|
|
369
390
|
|
|
370
|
-
|
|
391
|
+
The protocol re-measurement passed the old Worker, out-of-order responses, a stale baseline, corrupted patches, option switching, cancelled preparation and consecutive concurrent commits; page errors were empty. The stale baseline and corrupted patch each recover with one full request; cost selection returns a full success result directly rather than retrying after a failure. The public LocalReactiveDocument commits the correct document after a pausable, interruptible React transition and preserves input values; both the interrupted and final commits kept the value 13. The 2026-10-29 round additionally edited one row in huge static and dynamic lists and tables in a real browser; the preview DOM of unchanged rows kept the same object and the input value stayed 13.
|
|
371
392
|
|
|
372
393
|
### Current limits and where to optimize next
|
|
373
394
|
|
|
374
|
-
- In the public snapshot path for 5000 ordinary short paragraphs, a session edit takes
|
|
375
|
-
- The
|
|
395
|
+
- In the public snapshot path for 5000 ordinary short paragraphs, a session edit takes 81.39 ms, slower than full compilation at 70.04 ms. Sharing and full snapshot publishing still cost the whole tree; the public snapshot and the Worker's private sharing path should be optimized separately.
|
|
396
|
+
- The 2026-10-29 full matrix showed tail regressions for dynamic tables and lists, and that round's browser comparison improved median and P95. In this re-measurement, list shift edits are still slower than equal-length edits; continue tracking how allocation and GC affect the tail.
|
|
376
397
|
- Simple dynamic interpolation rows are on the fast path. Dynamic blocks containing links, escapes or complex inline formatting can still fall back; the next step can study local updates to row-fragment parsing and semantic summaries, continuing to validate with full-result diffs.
|
|
377
|
-
- Shift edits in large lists and tables relocate many ranges; patch encoding and cost estimation for whole-block rewrites can still increase Worker time, so reduce duplicate traversal before encoding first.
|
|
398
|
+
- Shift edits in large lists and tables relocate many ranges; patch encoding and cost estimation for whole-block rewrites can still increase Worker time, so reduce duplicate traversal before encoding first. In this re-measurement, rejecting a 50000-item over-budget list took about 349 ms, so the traversal before rejection is worth analyzing.
|
|
378
399
|
- CM6 still synchronizes with the host through a full source string, and author analysis also produces a whole result; long single lines, very long strings and large dependency graphs still involve linear work.
|
|
379
400
|
- The preview is suited to further row-level and block-level subscriptions and to viewport-deferred visualization. Before truly unmounting offscreen preview, state, anchors, native find, cross-block selection and printing must be preserved.
|
|
380
401
|
- Default depth budgets remain Markdown 1000 levels and components 100 levels. Deep results transfer after negotiating `flat-v1` through the public scheduler; custom Workers that hand deep `compileLocal()` results directly to native `postMessage()` are still limited by the browser call stack. Deep results currently send a complete flat snapshot each time; subtree patches can be studied later. Physical Chinese IME, mobile keyboards and assistive technology need manual acceptance on target devices.
|
|
381
402
|
|
|
382
403
|
### Reproduce and verify
|
|
383
404
|
|
|
384
|
-
Full serial matrix:
|
|
405
|
+
Full serial matrix (stages runnable in this repository):
|
|
385
406
|
|
|
386
407
|
```powershell
|
|
387
408
|
npm run build
|
|
388
|
-
|
|
389
|
-
node scripts/benchmark-performance-overview.mjs
|
|
409
|
+
node scripts/benchmark-performance-overview.mjs --skip=render,cm6
|
|
390
410
|
# Add a comparison when a saved old production package exists:
|
|
391
|
-
node scripts/benchmark-performance-overview.mjs --baseline=artifacts/next-editing/before-library
|
|
411
|
+
node scripts/benchmark-performance-overview.mjs --skip=render,cm6 --baseline=artifacts/next-editing/before-library
|
|
392
412
|
# Re-measure by phase; do not run other performance processes at the same time:
|
|
393
|
-
node scripts/benchmark-performance-overview.mjs --only=
|
|
413
|
+
node scripts/benchmark-performance-overview.mjs --only=compiler,blocks,parser,fast,incremental,memory,rows,worker,protocol,stages
|
|
394
414
|
```
|
|
395
415
|
|
|
396
|
-
|
|
416
|
+
This round covers compilation stress, 24 block types, mixed parsing, context recovery, snapshot copying, row reuse, Node and browser memory, Worker transfer, protocol recovery, runtime stages, table/chart dependency locality and plot sampling. Native CM6 input, React rendering phases and the f7a7ab8 baseline comparison depend on the split demo/editor repositories or a baseline package that was not retained, so they were not included.
|
|
397
417
|
|
|
398
|
-
Functional gates passed by the
|
|
418
|
+
Functional gates passed by the 2026-10-29 `4a8f1ea` matrix: production build, type checking, standalone and declaration generation, public package boundaries and offline packed consumption; 1504 tests in 112 core test files and 254 tests in 16 Demo files; 8 browser checks of the unified editor, plus CM6, real workbench, author tools, images, diagnostics, document save/export and long-document preview regressions.
|
|
399
419
|
|
|
400
|
-
The rendering semantic diff completed 350 steps of state, selection, reset, language and Tab operations with an identical final state; the optimized and baseline normalized markup are both 45806 characters and byte-identical, and page and console errors are empty.
|
|
420
|
+
The 2026-10-29 rendering semantic diff completed 350 steps of state, selection, reset, language and Tab operations with an identical final state; the optimized and baseline normalized markup are both 45806 characters and byte-identical, and page and console errors are empty. This round ran `npm run build` (type checking, production/standalone/declaration builds) successfully but did not re-run the full test gates.
|
|
401
421
|
|
|
402
|
-
|
|
422
|
+
This round's per-sample JSON is in `artifacts/performance-overview-run2/`; it is a locally ignored artifact. The committable condensed summary is `benchmarks/performance-overview-2026-11-20.json`, which retains the measurement basis, code provenance and package hashes. The 2026-10-29 round's per-sample artifacts are in `artifacts/performance-overview/`, `artifacts/render-pipeline/` and `artifacts/cm6/`, with summaries in `benchmarks/performance-overview-2026-10-29.json` and `benchmarks/dynamic-depth-2026-10-29.json`. The original historical reports can be read from the corresponding Git commits.
|
|
@@ -336,7 +336,7 @@ $$ (x^2 + y^2)^2 = 2a^2(x^2 - y^2) $$
|
|
|
336
336
|
|
|
337
337
|
`if` 的 `when` 必须是完整的布尔插值,写成 `when="{{ people >= 5 }}"`。条件为真时显示内部内容,为假时隐藏。
|
|
338
338
|
|
|
339
|
-
`alert` 是一块提示,`tone` 可取 `info`、`success` 或 `
|
|
339
|
+
`alert` 是一块提示,`tone` 可取 `info`、`success`、`warning` 或 `error`,默认 `info`;`error` 使用红色危险色调。`title` 可选,正文继续使用 Markdown。
|
|
340
340
|
|
|
341
341
|
### accordion 与 disclosure
|
|
342
342
|
|
|
@@ -496,7 +496,7 @@ $$ (x^2 + y^2)^2 = 2a^2(x^2 - y^2) $$
|
|
|
496
496
|
|
|
497
497
|
| 标签 | 形态 | 主要属性 | 用途 |
|
|
498
498
|
| --- | --- | --- | --- |
|
|
499
|
-
| `alert` | 容器 | `title`、`tone=info/success/warning` | 提示块 |
|
|
499
|
+
| `alert` | 容器 | `title`、`tone=info/success/warning/error` | 提示块 |
|
|
500
500
|
| `badge` | 行内 | `tone=neutral/success/warning`、`color` | 状态标签;`tone` 可静态或动态 |
|
|
501
501
|
| `tooltip` | 行内 | `text` 必填 | 行内说明;悬停或键盘聚焦时显示 |
|
|
502
502
|
|
|
@@ -336,7 +336,7 @@ At 5 or more people, you can request group pricing.
|
|
|
336
336
|
|
|
337
337
|
`if` requires a complete boolean interpolation in `when`, such as `when="{{ people >= 5 }}"`. It shows its content when the condition is true and hides it when false.
|
|
338
338
|
|
|
339
|
-
`alert` is a callout block. `tone` accepts `info`, `success` or `
|
|
339
|
+
`alert` is a callout block. `tone` accepts `info`, `success`, `warning` or `error` and defaults to `info`; `error` uses the red danger palette. `title` is optional, and the body continues to use Markdown.
|
|
340
340
|
|
|
341
341
|
### accordion and disclosure
|
|
342
342
|
|
|
@@ -496,7 +496,7 @@ Most interactive controls support `label`, optional `bind`, optional `initial` a
|
|
|
496
496
|
|
|
497
497
|
| Tag | Form | Key attributes | Purpose |
|
|
498
498
|
| --- | --- | --- | --- |
|
|
499
|
-
| `alert` | Container | `title`, `tone=info/success/warning` | Callout block |
|
|
499
|
+
| `alert` | Container | `title`, `tone=info/success/warning/error` | Callout block |
|
|
500
500
|
| `badge` | Inline | `tone=neutral/success/warning`, `color` | Status label; `tone` can be static or dynamic |
|
|
501
501
|
| `tooltip` | Inline | `text` required | Inline explanation; shown on hover or keyboard focus |
|
|
502
502
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**中文** · [English](author-tools-en.md)
|
|
4
4
|
|
|
5
|
-
安装 `reactive-md@0.
|
|
5
|
+
安装 `reactive-md@0.9.1` 即可使用 CLI 和不依赖 React 的 `reactive-md/authoring` 入口。从本仓库开发时,先构建语言包:
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
8
|
npm ci
|
|
@@ -61,4 +61,4 @@ const formatted = formatLocalSource(renamed.source, compileOptions);
|
|
|
61
61
|
|
|
62
62
|
`reactive-md/authoring` 还导出 `LOCAL_COMPONENTS`、`getLocalComponent`、`getNativeComponentCatalog`、`renderNativeSnippet`、`insertTemplate` 及其类型,无需 React 或 CSS。将预览使用的 `LocalCompileOptions` 传给这些函数的编译配置参数;省略时保持原有默认值。配置包括宿主 schema、HTML 模式、资源预算和 `markdownBreaks`。
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
作者工具入口与样式表接入见[公开接口参考](../reference/public-api-ch.md)的作者工具与样式表两节。
|