-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
buffer: avoid creating unnecessary environment #58053
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
base: main
Are you sure you want to change the base?
Conversation
523f5a8
to
4df7266
Compare
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.
sgtm
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.
To be fair, the changed code is not creating an Environment unnecessarily, it is simply dereferencing a pointer.
Ah true. Thanks. Still seems like an unnecessary operation that we do in almost all places. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #58053 +/- ##
==========================================
+ Coverage 90.18% 90.20% +0.01%
==========================================
Files 630 630
Lines 186393 186393
Branches 36595 36594 -1
==========================================
+ Hits 168103 168140 +37
+ Misses 11090 11081 -9
+ Partials 7200 7172 -28
🚀 New features to boost your workflow:
|
We don't have to deference the args pointer to create an environment variable while having access to isolate using
args.GetIsolate()