Skip to content

Commit 5aebc8d

Browse files
committed
zip: Make sure Layout::tendency is inlinable
This method showed up in profiling because it wasn't inlinable.
1 parent a6c6fce commit 5aebc8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/layout/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ impl Layout {
5858

5959
/// A simple "score" method which scores positive for preferring C-order, negative for F-order
6060
/// Subject to change when we can describe other layouts
61+
#[inline]
6162
pub(crate) fn tendency(self) -> i32 {
6263
(self.is(CORDER) as i32 - self.is(FORDER) as i32) +
6364
(self.is(CPREFER) as i32 - self.is(FPREFER) as i32)

0 commit comments

Comments
 (0)