Miscellaneous inlining improvements
Add `#[inline]` to a few trivial non-generic methods from a perf report that otherwise wouldn't be candidates for inlining.
This commit is contained in:
@@ -1603,6 +1603,7 @@ impl SourceFile {
|
||||
self.name.is_real()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_imported(&self) -> bool {
|
||||
self.src.is_none()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user