Skip to content

Commit

Permalink
Hint to the compiler to inline the fill_window function
Browse files Browse the repository at this point in the history
  • Loading branch information
brianpane authored and folkertdev committed Jan 9, 2025
1 parent 1217b45 commit be3740f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zlib-rs/src/deflate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1745,6 +1745,7 @@ pub(crate) const WANT_MIN_MATCH: usize = 4;

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

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

Expand Down

0 comments on commit be3740f

Please sign in to comment.