Repository navigation
Move Object internal object methods to GcObject - #835
Merged
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #835 +/- ##
==========================================
- Coverage 59.30% 59.29% -0.02%
==========================================
Files 165 165
Lines 10342 10376 +34
==========================================
+ Hits 6133 6152 +19
- Misses 4209 4224 +15
Continue to review full report at Codecov.
|
Benchmark for 44ad89aClick to view benchmark
|
RageKnify
reviewed
Oct 9, 2020
Member
Author
|
Looking at the benchmarks there isn't that big of a regression, as I expected. |
Member
I'm guessing many times the compiler can statically remove some checks. |
HalidOdat
force-pushed
the
move-object-methods
branch
from
October 10, 2020 11:27
fd16259 to
5109d83
Compare
HalidOdat
marked this pull request as ready for review
October 10, 2020 11:29
RageKnify
reviewed
Oct 10, 2020
Benchmark for a4e0864Click to view benchmark
|
RageKnify
approved these changes
Oct 10, 2020
RageKnify
left a comment
Contributor
There was a problem hiding this comment.
Other than updating the comments and the lifetime naming it looks fine.
Benchmark for 35865cfClick to view benchmark
|
HalidOdat
force-pushed
the
move-object-methods
branch
from
October 16, 2020 17:51
cb5d69f to
25fe301
Compare
Benchmark for 55881f0Click to view benchmark
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why move the methods?
Moving Object internal methods to
GcObjectbecause we borrow the object and we hold on to it and if an accessor (getters/setters) was to access the object it will give a borrow panic.I expect some performance regression, since we do more borrow checks.