Cian Johnston
c62079c053
refactor(coderd): optimize chatdebug ( #27129 )
...
Adds a bund of optimizations to chatdebug:
In `coderd/x/chatd/chatdebug`:
- Adds a benchmark (excluding LLM and database stuff)
- Replaces string concatenation with strings.Builder when accumulating
stream parts (~105,000ns -> ~50,00ns)
- Removes double JSON encode in RecordingTransport (114,000ns ->
64,000ns)
In `coderd/util/strings`:
- Adds a benchmark for Truncate
- Removes unnecessary allocations in Truncate (~110,000ns -> 1,550ns in
truncation case, 1 alloc -> 0 allocs in no truncation case)
> 🤖 Claude helped with this.
2026-08-05 11:59:37 +01:00
..
2026-07-14 13:50:25 +01:00
2026-07-21 13:38:20 +02:00
2026-08-05 11:59:37 +01:00
2026-08-04 11:36:49 +02:00
2026-08-03 19:04:54 +02:00
2026-07-29 11:39:12 +00:00
2026-08-04 08:00:19 +00:00
2026-07-29 11:39:12 +00:00
2026-08-04 08:13:00 +00:00
2026-06-16 12:35:40 +00:00
2026-06-16 12:35:40 +00:00
2026-08-04 12:27:38 +02:00
2026-07-29 11:39:12 +00:00
2026-07-29 11:39:12 +00:00
2026-07-02 11:22:56 +01:00
2026-07-20 00:14:03 +02:00
2026-06-18 22:45:01 +02:00
2026-07-29 11:39:12 +00:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-08-04 07:46:32 +00:00
2026-08-04 08:13:00 +00:00
2026-05-22 20:24:38 +10:00
2026-05-18 12:30:30 -04:00
2026-07-21 10:58:08 +02:00
2026-07-06 16:37:45 +00:00
2026-07-06 16:37:45 +00:00
2026-08-04 07:46:32 +00:00
2026-07-18 20:45:13 +02:00
2026-08-04 07:46:32 +00:00
2026-07-06 11:57:12 +01:00
2026-08-04 11:36:49 +02:00
2026-08-04 12:27:38 +02:00
2026-05-08 02:07:33 +10:00
2026-07-20 19:49:19 +02:00
2026-07-29 11:39:12 +00:00
2026-08-04 08:00:19 +00:00
2026-08-04 08:13:00 +00:00
2026-08-04 08:00:19 +00:00
2026-08-04 08:00:19 +00:00
2026-08-04 07:46:32 +00:00
2026-07-07 00:20:54 +10:00
2026-05-22 09:50:01 +02:00
2026-07-18 21:52:02 +02:00
2026-07-18 21:52:02 +02:00
2026-06-30 12:17:42 +01:00
2026-07-18 21:52:02 +02:00
2026-07-06 11:57:12 +01:00
2026-07-18 21:52:02 +02:00
2026-07-29 11:39:12 +00:00
2026-06-11 16:08:32 +10:00
2026-06-11 16:08:32 +10:00
2026-05-20 01:37:38 +02:00
2026-04-08 11:54:44 -04:00
2026-04-08 11:54:44 -04:00
2026-07-29 11:39:12 +00:00
2026-08-04 07:46:32 +00:00
2026-08-04 08:13:00 +00:00
2026-06-17 10:20:47 +00:00
2026-08-04 12:27:38 +02:00
2026-07-20 19:49:19 +02:00
2026-07-29 11:39:12 +00:00
2026-07-29 11:39:12 +00:00
2026-08-03 18:27:39 +02:00
2026-06-26 13:41:43 +03:00
2026-06-22 19:26:34 -06:00
2026-07-18 20:45:13 +02:00
2026-07-13 20:28:28 +02:00
2026-06-16 12:35:40 +00:00
2026-07-20 00:14:03 +02:00
2026-08-04 12:27:38 +02:00
2026-08-04 12:27:38 +02:00
2026-08-04 08:00:19 +00:00
2026-08-04 08:00:19 +00:00
2026-08-04 08:00:19 +00:00
2026-07-29 11:39:12 +00:00
2026-07-09 23:35:12 +01:00
2026-07-09 23:35:12 +01:00
2026-07-29 11:39:12 +00:00
2026-07-29 11:39:12 +00:00
2026-06-26 13:41:43 +03:00
2026-06-29 11:49:10 +01:00
2026-06-29 11:49:10 +01:00
2026-08-04 07:46:32 +00:00
2026-08-04 08:13:00 +00:00
2026-07-13 20:28:28 +02:00
2026-04-22 20:11:53 +10:00
2026-06-12 13:33:12 +02:00
2026-07-29 11:39:12 +00:00
2026-07-29 11:39:12 +00:00
2026-03-25 14:09:24 +00:00
2026-03-25 14:09:24 +00:00
2026-07-29 11:39:12 +00:00
2026-06-25 00:51:13 +10:00
2026-04-22 20:11:53 +10:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-16 12:35:40 +00:00
2026-06-18 08:28:17 +00:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-07-22 18:43:22 +02:00
2026-07-18 20:45:13 +02:00
2026-08-05 11:40:00 +10:00
2026-07-18 20:45:13 +02:00
2026-08-04 11:36:49 +02:00
2026-07-27 10:05:05 +01:00
2026-07-20 19:49:19 +02:00
2026-07-18 20:45:13 +02:00
2026-07-20 19:49:19 +02:00
2026-07-06 16:37:45 +00:00
2026-06-17 18:29:43 +02:00
2026-08-04 07:46:32 +00:00
2026-08-04 07:46:32 +00:00
2026-07-29 11:39:12 +00:00
2026-07-29 11:39:12 +00:00
2026-07-27 10:05:05 +01:00
2026-07-06 16:37:45 +00:00
2026-07-06 16:37:45 +00:00