Files
Netcatty/index.tsx
T
LAPTOP-O016UC3M\Qi Chen 61cdc54096 Improves terminal performance and SSH responsiveness
Reduces terminal scrollback for faster rendering and preloads WASM for quicker terminal startup.

Optimizes SSH connection parameters for faster failure detection and lower latency (shorter timeout, longer keepalive interval, prioritized fast ciphers and key exchange).

Decreases IPC overhead by buffering terminal data output before sending to the frontend, reducing message frequency and improving efficiency.
2025-12-11 18:23:56 +08:00

21 lines
660 B
TypeScript
Executable File

import { init as initGhostty } from 'ghostty-web';
import ReactDOM from 'react-dom/client';
import App from './App';
// Pre-load Ghostty WASM immediately on app start for faster terminal open
initGhostty().catch((err) => {
console.warn('[Ghostty] WASM preload failed, will retry on terminal open:', err);
});
const rootElement = document.getElementById('root');
if (!rootElement) {
throw new Error("Could not find root element to mount to");
}
const root = ReactDOM.createRoot(rootElement);
root.render(
// StrictMode causes double renders in development - disabled for performance testing
// <React.StrictMode>
<App />
// </React.StrictMode>
);