Something went wrong. Try again.
Go bindings for libghostty-vt. pkg.go.dev/go.mitchellh.com/libghostty
ghostty
Something went wrong. Try again.
terminal: reduce snapshot and formatter overhead master
Add benchmark coverage for snapshot reader decoding and VT Writer formatting across empty, plain, Unicode, styled, and large terminal states. Previously each formatter call allocated a cgo writer handle and crossed into Go for every native fragment. Retain one handle per formatter and coalesce fragments in a binding-side buffer so steady-state writes are allocation-free and use bounded callbacks. Lazily install terminal effect userdata and co-allocate callback reader state with its snapshot decoder. This removes registry and wrapper allocations from decode paths while preserving on-demand effects for restored terminals.
Author Mitchell Hashimoto Date (Aug 17, 2026, 7:01 PM UTC) Commit db6298f9 db6298f9baa238ecdd04cec5113ea2b739e9f43d Parent 37ae8c3e 37ae8c3efd433574980ac11ad47a2db9f422762e