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:
parent
3e51277fe6
commit
87374de3ad
8 changed files with 13 additions and 0 deletions
|
@ -81,6 +81,7 @@ pub struct QuerySideEffects {
|
|||
}
|
||||
|
||||
impl QuerySideEffects {
|
||||
#[inline]
|
||||
pub fn is_empty(&self) -> bool {
|
||||
let QuerySideEffects { diagnostics } = self;
|
||||
diagnostics.is_empty()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue