Skip to content

Commit

Permalink
Inline buffer access method
Browse files Browse the repository at this point in the history
This makes non-LTO builds  faster, thanks
to dignifiedquire/buffer-redux@d0bcece
  • Loading branch information
Markus Schlegel committed Jan 26, 2025
1 parent 2d664e7 commit a8ae821
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exclude = [

[dependencies]
memchr = "2.5.0"
buffer-redux = { version = "1.0.0", default_features = false }
buffer-redux = { version = "~1.0.1", default_features = false }
scoped_threadpool = "0.1"
crossbeam-utils = "0.8"
serde = "1.0"
Expand Down
1 change: 1 addition & 0 deletions src/fasta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ where
Ok(None)
}

#[inline]
fn get_buf(&self) -> &[u8] {
self.buf_reader.buffer()
}
Expand Down
1 change: 1 addition & 0 deletions src/fastq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ where
Ok(true)
}

#[inline]
fn get_buf(&self) -> &[u8] {
self.buf_reader.buffer()
}
Expand Down

0 comments on commit a8ae821

Please sign in to comment.