陈大猫 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-06-29 13:18:59 +08:00
2026-07-04 21:52:14 +08:00
2026-07-05 17:52:44 +08:00
2026-07-05 17:51:41 +08:00
2026-07-04 16:02:31 +08:00
2026-07-05 17:52:44 +08:00
2026-06-22 18:57:47 +08:00
2026-06-22 18:57:47 +08:00
2026-06-22 11:03:11 +08:00
2026-05-26 02:03:33 +08:00
2026-05-25 14:39:49 +08:00
2026-06-10 15:18:37 +08:00
2026-07-03 10:47:59 +08:00
2026-05-25 14:39:02 +08:00
2026-05-25 14:39:02 +08:00
2026-06-29 13:16:27 +08:00
2026-06-29 13:16:27 +08:00
2026-03-03 19:27:37 +08:00
2026-04-23 10:01:02 +08:00
2026-06-09 20:11:12 +08:00
2026-06-23 20:08:43 +08:00
2026-06-23 20:08:43 +08:00
2026-04-23 02:06:26 +08:00
2026-06-29 11:57:08 +08:00
2026-05-21 15:40:35 +08:00
2026-05-09 23:42:08 +08:00
2026-05-09 23:42:08 +08:00
2026-06-29 11:17:13 +08:00
2026-06-29 11:17:13 +08:00
2026-07-01 19:20:05 +08:00
2026-07-01 19:20:05 +08:00
2026-06-24 14:16:16 +08:00
2026-06-24 14:16:16 +08:00
2026-05-22 23:58:57 +08:00
2026-06-26 17:52:03 +08:00
2026-06-26 17:52:03 +08:00
2026-06-24 01:21:21 +08:00
2026-06-24 01:21:21 +08:00
2026-06-23 20:25:16 +08:00
2026-06-23 14:11:03 +08:00
2026-05-28 15:12:19 +08:00
2026-05-28 15:12:19 +08:00
2026-06-30 20:10:40 +08:00
2026-07-05 17:52:44 +08:00
2026-07-04 19:20:24 +08:00
2026-06-23 00:24:39 +08:00
2026-06-28 23:48:12 +08:00
2026-06-28 23:48:12 +08:00
2026-06-06 18:59:48 +08:00
2026-06-14 01:30:44 +08:00
2026-06-25 10:15:39 +08:00
2026-06-25 10:15:39 +08:00
2026-06-24 01:27:20 +08:00
2026-06-24 01:20:28 +08:00
2026-05-26 02:03:33 +08:00
2026-03-27 01:39:02 +08:00
2026-06-10 01:10:33 +08:00
2026-06-26 16:52:08 +08:00
2026-06-28 23:59:24 +08:00
2026-06-26 16:52:08 +08:00
2026-06-22 18:57:47 +08:00
2026-06-22 18:57:47 +08:00
2026-06-10 15:18:37 +08:00
2026-07-04 15:14:55 +08:00
2026-07-04 15:14:55 +08:00
2026-07-04 15:14:55 +08:00
2026-06-26 01:34:29 +08:00
2026-06-26 01:34:29 +08:00
2026-07-04 19:04:45 +08:00
2026-07-04 19:04:45 +08:00
2026-06-12 16:56:48 +08:00
2026-07-03 10:47:59 +08:00
2026-06-26 01:34:29 +08:00
2026-06-26 01:34:29 +08:00
2026-05-09 23:42:08 +08:00
2026-06-26 01:34:29 +08:00
2026-06-29 10:49:19 +08:00
2026-06-24 23:52:03 +08:00
2026-06-24 23:52:03 +08:00
2026-06-25 09:42:19 +08:00
2026-07-01 23:44:37 +08:00
2026-06-29 10:36:17 +08:00
2026-06-24 23:52:03 +08:00
2026-06-24 23:52:03 +08:00
2026-07-01 17:20:18 +08:00
2026-07-01 17:20:18 +08:00
2026-07-02 01:13:38 +08:00
2026-06-28 02:20:06 +08:00
2026-06-28 02:20:06 +08:00
2026-07-01 19:20:05 +08:00
2026-07-01 19:20:05 +08:00
2026-06-25 10:15:39 +08:00
2026-06-28 23:48:12 +08:00
2026-07-04 15:00:45 +08:00
2026-07-04 15:14:55 +08:00
2026-04-10 21:30:25 +08:00
2026-06-22 22:04:33 +08:00
2026-06-28 02:17:06 +08:00
2026-06-14 01:30:44 +08:00
2026-06-14 01:30:44 +08:00
2026-07-04 21:52:14 +08:00
2026-06-26 15:53:01 +08:00
2026-05-18 11:53:14 +08:00
2026-07-05 17:51:41 +08:00
2026-06-26 01:34:29 +08:00
2026-06-29 22:55:53 +08:00
2026-05-23 12:20:20 +08:00
2026-06-29 22:20:10 +08:00