Something went wrong. Try again.
Go bindings for libghostty-vt. pkg.go.dev/go.mitchellh.com/libghostty
ghostty
Something went wrong. Try again.
render: make cell style snapshots allocation-free master
RenderCellStyle used pointer fields for foreground and background colors that pointed back into storage owned by the same struct. Reusing a single style value in a per-cell render loop still forced the destination to escape, producing heap allocations for heavily styled output. Store resolved colors as values with explicit presence booleans instead and make StyleInto fill that shape directly. The binding helper now returns its snapshot by value rather than writing through a Go pointer, so cgo does not force a temporary snapshot allocation on every call.
Author Mitchell Hashimoto Date (May 28, 2026, 1:42 PM UTC) Commit bacf735d bacf735dd69d0107aa6c51e9dd9185717ff39cdf Parent e2f7f6c3 e2f7f6c3c87db61556d5052ad25094570bb1249e Change ID tvpnursv tvpnursvuymswqrulkslknlxxotlvnsu