perf(sse): reuse the data-line buffer across events in readSSE

This commit is contained in:
2026-09-29 12:35:05 +01:00
parent e12cec8bf9
commit b8772d3d73
+1 -1
View File
@@ -164,7 +164,7 @@ func readSSE(r io.Reader, fn func(sseEvent) error) error {
// suite, the SSE streaming path); tools/yaegi-check never exercises
// a live streaming response.
event = ""
dataLines = nil
dataLines = dataLines[:0]
hasData = false
dataBytes = 0
if !fire {