Use SIMD base64 encoding for graphics transmission

This commit is contained in:
Kovid Goyal
2026-04-21 10:01:28 +05:30
parent 93573aec6f
commit 744ad7438c
2 changed files with 3 additions and 5 deletions

View File

@@ -19,10 +19,7 @@ func collectDecode(t *testing.T, d *StreamingBase64Decoder, encoded []byte, chun
t.Helper()
var result []byte
for len(encoded) > 0 {
end := chunkSize
if end > len(encoded) {
end = len(encoded)
}
end := min(chunkSize, len(encoded))
chunk := encoded[:end]
encoded = encoded[end:]