陈大猫 and Cursor
effafd9c2e
Batch terminal output hot-path scans to raise renderer throughput. ( #1941 )
...
Every output chunk was walked char-by-char up to four times in JS
(sync-block filter, erase-scrollback rewrite, replay-safe log sanitizer,
line-timestamp segmenter) plus two more per-char scans for long-line
pressure, before xterm.js ever parsed it. Replace those loops with
native indexOf/regex hops and single-slice appends, and gate the
quadratic pending-suffix scan in the sync filter behind a cheap
incomplete-escape check. Output is byte-for-byte identical (fuzzed
old-vs-new over 4000 mixed chunks); colored-output floods drop from
~350ms to ~0.03ms per 64KB batch in the sync filter alone.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 17:52:44 +08:00
..
2026-05-24 23:30:35 +08:00
2026-05-24 23:30:35 +08:00
2026-06-29 23:26:53 +08:00
2026-06-29 23:26:53 +08:00
2026-06-30 17:01:27 +08:00
2026-06-30 17:01:27 +08:00
2026-07-01 23:54:48 +08:00
2026-07-01 02:49:24 +08:00
2026-06-09 03:51:33 +08:00
2026-07-04 16:02:31 +08:00
2026-04-28 17:17:37 +08:00
2026-04-28 17:17:37 +08:00
2026-06-24 23:07:16 +08:00
2026-07-05 17:52:44 +08:00
2026-05-09 19:12:08 +08:00
2026-05-09 14:56:17 +08:00
2026-05-09 19:12:08 +08:00
2026-07-04 19:04:45 +08:00
2026-07-04 19:04:45 +08:00
2026-05-25 00:10:40 +08:00
2026-05-25 00:10:40 +08:00
2026-06-27 01:53:41 +08:00
2026-06-27 12:46:38 +08:00
2026-05-20 23:08:42 +08:00
2026-05-20 23:08:42 +08:00
2026-05-22 18:25:38 +08:00
2026-05-22 18:25:38 +08:00
2026-05-12 17:33:31 +08:00
2026-05-12 17:33:31 +08:00
2026-06-25 14:47:17 +08:00
2026-06-25 14:47:17 +08:00
2026-06-28 00:20:22 +08:00
2026-06-28 00:20:22 +08:00
2026-06-09 03:51:33 +08:00
2026-06-14 01:49:21 +08:00
2026-06-14 01:49:21 +08:00
2026-06-26 22:26:50 +08:00
2026-06-26 22:26:50 +08:00
2026-06-27 02:10:19 +08:00
2026-06-27 02:10:19 +08:00
2026-06-30 21:43:12 +08:00
2026-06-30 21:43:12 +08:00
2026-07-04 17:04:48 +08:00
2026-07-04 17:04:48 +08:00
2026-06-12 14:33:17 +08:00
2026-06-12 14:33:17 +08:00
2026-06-20 11:26:53 +08:00
2026-06-20 11:26:53 +08:00
2026-06-27 12:46:38 +08:00
2026-06-27 17:46:24 +08:00
2026-06-27 17:46:24 +08:00
2026-06-27 12:46:38 +08:00
2026-06-27 12:46:38 +08:00
2026-06-29 16:17:50 +08:00
2026-07-05 17:52:44 +08:00
2026-06-30 21:43:12 +08:00
2026-06-29 15:25:46 +08:00
2026-07-01 19:20:05 +08:00
2026-07-05 17:52:44 +08:00
2026-07-01 23:54:48 +08:00
2026-07-05 17:51:41 +08:00
2026-07-05 17:51:41 +08:00
2026-06-30 17:01:27 +08:00
2026-06-08 16:29:25 +08:00
2026-06-08 16:29:25 +08:00
2026-06-24 23:07:16 +08:00
2026-06-24 23:07:16 +08:00
2026-07-05 17:51:41 +08:00
2026-07-05 17:51:41 +08:00
2026-05-20 11:12:27 +08:00
2026-05-20 11:12:27 +08:00
2026-06-27 02:39:32 +08:00
2026-06-29 11:24:15 +08:00
2026-07-02 14:25:48 +08:00
2026-07-05 17:52:44 +08:00
2026-07-02 14:25:48 +08:00
2026-07-02 14:25:48 +08:00
2026-06-06 22:52:35 +08:00
2026-06-06 22:52:35 +08:00
2026-06-29 11:23:40 +08:00
2026-07-02 14:25:48 +08:00