Files
Netcatty/components/notes/LazyNotesManager.tsx
T
陈大猫 52dfe7b524 perf(memory): implement Phase 1–2 idle, window, and terminal memory optimizations
- Fix kittyKeyboardBroadcast closure leak while preserving hibernated broadcast via detached top-level handler
- Replace dense KeywordHighlighter line caches with sparse packed triples and 53-bit numeric fingerprints
- Deduplicate hibernation snapshots and compress large scrollbacks via native gzip
- Eliminate cold-start terminalWorker wakes (portForwarding, transfer concurrency, empty monitor updates, cold MCP cancel, and stateless local shell/path queries)
- Auto-destroy hidden Settings and Tray windows after a configurable 20s idle grace window
- Tune Electron V8/GPU startup flags, switch V8 cache to code, and stream large app:// assets
- Split renderer entry bundle (App, NotesManager, MonitorPanels, globalAgentToolSpecs) and enable Chromium sandbox: true on all BrowserWindows via esbuild-bundled preload and IPC upload staging
- Add MRU=1 hidden WebGL context budget, dynamic main-window backgroundThrottling, bounded SSH/Fig caches, and lazy native addon loading
2026-11-27 08:28:48 +00:00

17 lines
532 B
TypeScript

import React, { Suspense, lazy } from "react";
import type { NotesManagerProps } from "./NotesManager";
const NotesManagerChunk = lazy(() =>
import("./NotesManager").then((mod) => ({ default: mod.NotesManager })),
);
/**
* Code-split wrapper so NotesManager (and its markdown/MDX parser tree)
* is not parsed or retained in the initial startup bundle until opened.
*/
export const LazyNotesManager: React.FC<NotesManagerProps> = (props) => (
<Suspense fallback={null}>
<NotesManagerChunk {...props} />
</Suspense>
);