Skip to content

Commit cc6f005

Browse files
brianpanefolkertdev
authored andcommitted
Hint to the compiler to inline the fill_window function
1 parent 1217b45 commit cc6f005

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zlib-rs/src/deflate.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,6 +1745,7 @@ pub(crate) const WANT_MIN_MATCH: usize = 4;
17451745

17461746
pub(crate) const MIN_LOOKAHEAD: usize = STD_MAX_MATCH + STD_MIN_MATCH + 1;
17471747

1748+
#[inline]
17481749
pub(crate) fn fill_window(stream: &mut DeflateStream) {
17491750
debug_assert!(stream.state.lookahead < MIN_LOOKAHEAD);
17501751

0 commit comments

Comments
 (0)