-
-
Notifications
You must be signed in to change notification settings - Fork 749
sse: introduce sync pool for rawEvent
to optimize memory usage.
#1011
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
rawEvent
to optimize memory usage.rawEvent
to optimize memory usage.
@jeevatkm please take a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liuzengh Can you please check test cases failure?
Move the `defer putRawEvent(ed)` call after error handling to ensure resources are properly released only when parsing succeeds. This prevents potential resource leaks when errors occur during event parsing.
# Conflicts: # sse.go
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v3 #1011 +/- ##
=======================================
Coverage 99.82% 99.82%
=======================================
Files 18 18
Lines 3896 3914 +18
=======================================
+ Hits 3889 3907 +18
Misses 5 5
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liuzengh Thanks for fixing test cases.
No description provided.