Files
Netcatty/components
bincxzandClaude Opus 4.8 9ce3abc2b4 perf(connect): stagger batch host connects across frames
Batch-connecting N hosts called onConnect() in a synchronous forEach, so
all N terminals mounted in one React commit and each createXTermRuntime()
(which spins up a live WebGL context) ran back-to-back on the main
thread, freezing the UI until the whole batch finished (~2-3s per host,
linear). Spread the connects across frames via a small injectable-scheduler
helper: the first host still connects synchronously so its tab appears
immediately, the rest are deferred one step apart so no two heavy mounts
land on the same frame.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-06 22:52:35 +08:00
..
2026-06-06 18:59:48 +08:00
2026-06-01 21:03:43 +08:00
2026-06-06 17:04:33 +08:00
2026-06-06 22:13:47 +08:00
2026-06-02 01:15:36 +08:00
2026-06-02 01:28:39 +08:00
2026-05-07 12:57:54 +08:00
2026-06-01 21:03:43 +08:00
2026-06-01 21:03:43 +08:00
2026-06-01 21:03:43 +08:00
2026-06-02 12:01:40 +08:00
2026-06-06 22:13:47 +08:00