mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Sprinkle some inline in trivial methods.
These methods are instantiated by the Gecko library, and used during querySelector, which means that they end up being super-hot in micro-benchmarks. MozReview-Commit-ID: K1XJb0QyX5a
This commit is contained in:
parent
2efbf2230a
commit
28c04278e1
3 changed files with 28 additions and 0 deletions
|
@ -800,6 +800,7 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
fn select_name<'a, T>(is_html: bool, local_name: &'a T, local_name_lower: &'a T) -> &'a T {
|
||||
if is_html {
|
||||
local_name_lower
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue