-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
Reduce WeakGc<T>
memory usage
#3492
Conversation
Makes inner storage of `WeakGc<T>` store `()` in place of `Ephemeron` value, insteadthe of a clone of the `Gc<T>` which is already stored in the key. Reducing the size by the width of one pointer.
Test262 conformance changes
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3492 +/- ##
=======================================
Coverage 44.57% 44.57%
=======================================
Files 487 487
Lines 50621 50627 +6
=======================================
+ Hits 22563 22569 +6
Misses 28058 28058 ☔ View full report in Codecov by Sentry. |
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.
Nice optimization!
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.
Good find!
Makes inner storage of
WeakGc<T>
store()
in place ofEphemeron
value, instead of a clone of theGc<T>
, which is already stored in the key.Reducing the size by the width of one pointer.