Skip to content

terminal/osc: decode OSC 52 base64 with the SIMD decoder - #13565

Merged
mitchellh merged 1 commit into
ghostty-org:mainfrom
Uzaaft:perf/osc52-simd-base64
Aug 2, 2026
Merged

mitchellh merged 1 commit into
ghostty-org:mainfrom
Uzaaft:perf/osc52-simd-base64

Conversation

@Uzaaft

@Uzaaft Uzaaft commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

use simd decoder for OSC 52 clipboard instead of the scalar impl.

OSC 52 clipboard writes decoded their base64 payload with the scalar
std implementation while Kitty graphics payloads already used the SIMD
decoder in src/simd.

Move clipboard path to use the same SIMD decoder. The encode side
of the read reply stays scalar since the codebase has no SIMD
encoder. 3.3x faster on a 4KB-payload decode micro-benchmark.
@Uzaaft
Uzaaft requested a review from a team as a code owner August 2, 2026 21:16
@mitchellh
mitchellh merged commit 39799a6 into ghostty-org:main Aug 2, 2026
95 checks passed
@github-actions github-actions Bot added this to the 1.4.0 milestone Aug 2, 2026
@Uzaaft
Uzaaft deleted the perf/osc52-simd-base64 branch August 2, 2026 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants