-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Clear ApplicationLogEvent
and SkaffoldLogEvent
buffers on new dev iteration
#5993
Conversation
ApplicationLogEvent
and SkaffoldLogEvent
buffers on new dev iteration
Codecov Report
@@ Coverage Diff @@
## master #5993 +/- ##
==========================================
- Coverage 70.76% 70.66% -0.10%
==========================================
Files 460 462 +2
Lines 17746 17804 +58
==========================================
+ Hits 12558 12582 +24
- Misses 4260 4289 +29
- Partials 928 933 +5
Continue to review full report at Codecov.
|
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.
should we allocate new memory instead of nil to make sure there is no nil point exception
@tejal29 I'm unsure, since there are no fields of a slice that we can access so I don't think that could happen. I think that functionally, a |
ah. I guess iterating would be fine. I had looked up usage last time and looks like we pass the pointer to these fields.
My concern is this might end up into nil pointer exception? |
@tejal29 made the change to use slice literals 👍🏼 |
Related: #5368 #5370
Description
This change resets the buffers containing
SkaffoldLogEvent
s andApplicationLogEvent
s on a new dev iteration, to prevent increased RAM usage over time.