Skip to content

Commit a8ae821

Browse files
author
Markus Schlegel
committed
Inline buffer access method
This makes non-LTO builds faster, thanks to dignifiedquire/buffer-redux@d0bcece
1 parent 2d664e7 commit a8ae821

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ exclude = [
1717

1818
[dependencies]
1919
memchr = "2.5.0"
20-
buffer-redux = { version = "1.0.0", default_features = false }
20+
buffer-redux = { version = "~1.0.1", default_features = false }
2121
scoped_threadpool = "0.1"
2222
crossbeam-utils = "0.8"
2323
serde = "1.0"

src/fasta.rs

+1
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ where
353353
Ok(None)
354354
}
355355

356+
#[inline]
356357
fn get_buf(&self) -> &[u8] {
357358
self.buf_reader.buffer()
358359
}

src/fastq.rs

+1
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ where
266266
Ok(true)
267267
}
268268

269+
#[inline]
269270
fn get_buf(&self) -> &[u8] {
270271
self.buf_reader.buffer()
271272
}

0 commit comments

Comments
 (0)