-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
style: Inline some things that should never ever appear in a profile. #19451
Conversation
Heads up! This PR modifies the following files:
|
bcef006
to
2bbeda9
Compare
@@ -236,6 +237,7 @@ impl<'ln> GeckoNode<'ln> { | |||
true | |||
} | |||
|
|||
#[inline] | |||
fn flattened_tree_parent(&self) -> Option<Self> { |
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.
I'm not particularly convinced this method should be marked inline
. It looks non-trivial, especially when flattened_tree_parent_is_parent
is inlined. And it is called in more than one places. I would say let's just let compiler decide this one.
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.
The whole point of flattened_tree_parent_is_parent
is avoiding the normal ool function call, and this method is hot :(
@bors-servo r=xidorn |
📌 Commit 2bbeda9 has been approved by |
@bors-servo r=upsuper |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit 2bbeda9 has been approved by |
style: Inline some things that should never ever appear in a profile. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19451) <!-- Reviewable:end -->
💔 Test failed - mac-dev-unit |
@bors-servo: retry
|
style: Inline some things that should never ever appear in a profile. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19451) <!-- Reviewable:end -->
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev |
This change is