Files
ghostty/src
Mitchell Hashimoto f2d5758f63 terminal/snapshot: use stack fallback for record scratch (#14018)
Use a bounded 512-byte stack fallback for complete-snapshot record
scratch. Small records avoid heap growth while larger records continue
through the heap allocator.

This usually means 2 fewer allocations per encode, resulting in a small
performance improvement in a local benchmark:

| Workload | `main` median | Branch median | Change |
|---|---:|---:|---:|
| Empty, 50k encodes | 135.06 ms | 130.76 ms | **3.2% faster** |
| 1 MiB ASCII, 500 encodes | 280.75 ms | 281.25 ms | **0.2% slower**,
within noise |
| 1 MiB styled, 200 encodes | 1,023.02 ms | 996.32 ms | **2.6% faster**
|
2026-08-26 19:52:24 -07:00
..
2026-03-15 20:58:43 -04:00
2026-08-20 13:32:30 -07:00
2025-10-03 18:52:26 +02:00
2026-07-21 17:19:16 -07:00
2025-11-27 13:37:53 -08:00
2026-08-03 20:10:19 -07:00
2026-07-21 12:35:05 -07:00
2026-07-21 17:19:16 -07:00
2026-07-21 12:35:05 -07:00
2026-07-21 17:19:16 -07:00
2026-07-21 17:19:16 -07:00
2024-08-16 14:35:10 -07:00
2026-07-21 17:19:16 -07:00
2022-08-18 11:42:32 -07:00
2026-03-20 10:37:42 -05:00
2026-07-21 12:35:05 -07:00
2026-07-21 12:35:05 -07:00