Skip to content

perf: reduce EventSourceStream parser allocations (#5032) - #5646

Merged
mcollina merged 1 commit into
v7.xfrom
backport/eventsource-stream-perf-v7
Aug 4, 2026
Merged

perf: reduce EventSourceStream parser allocations (#5032)#5646
mcollina merged 1 commit into
v7.xfrom
backport/eventsource-stream-perf-v7

Conversation

@mcollina

@mcollina mcollina commented Aug 4, 2026

Copy link
Copy Markdown
Member

Backport

Backports aeed21a (perf: reduce EventSourceStream parser allocations (#5032)) to v7.x.

Cherry-pick applied cleanly.

Validation

node --test test/eventsource/eventsource-stream.js   test/eventsource/eventsource-stream-parse-line.js   test/eventsource/eventsource-stream-process-event.js   test/eventsource/eventsource-stream-bom.js   test/eventsource/eventsource-message.js

52/52 passed.

Assisted-by: OpenAI:gpt-5.4
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
(cherry picked from commit aeed21a)
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.17%. Comparing base (c26f943) to head (2065dba).

Additional details and impacted files
@@            Coverage Diff             @@
##             v7.x    #5646      +/-   ##
==========================================
+ Coverage   93.15%   93.17%   +0.01%     
==========================================
  Files         112      112              
  Lines       36810    36905      +95     
==========================================
+ Hits        34291    34386      +95     
  Misses       2519     2519              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mcollina
mcollina merged commit f408f12 into v7.x Aug 4, 2026
67 of 68 checks passed
@mcollina
mcollina deleted the backport/eventsource-stream-perf-v7 branch August 4, 2026 15:52
@github-actions github-actions Bot mentioned this pull request Sep 4, 2026
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.

3 participants