perf: optimize persist delta gating and diagnostics

This commit is contained in:
Youzini-afk
2026-04-13 16:11:22 +08:00
parent 8f7572b615
commit b16785e56f
30 changed files with 4495 additions and 47 deletions

View File

@@ -112,6 +112,18 @@ export const defaultSettings = {
embeddingBackendApiUrl: "",
embeddingAutoSuffix: true,
// Native 性能加速(灰度)
graphUseNativeLayout: false,
graphNativeLayoutThresholdNodes: 280,
graphNativeLayoutThresholdEdges: 1600,
graphNativeLayoutWorkerTimeoutMs: 260,
persistUseNativeDelta: false,
persistNativeDeltaThresholdRecords: 20000,
persistNativeDeltaThresholdStructuralDelta: 600,
persistNativeDeltaThresholdSerializedChars: 4000000,
nativeEngineFailOpen: true,
graphNativeForceDisable: false,
// Schema
nodeTypeSchema: null,