further optimization
This commit is contained in:
parent
1c836c6ecf
commit
fe4a47d6cc
2 changed files with 7 additions and 2 deletions
|
@ -10,4 +10,7 @@ debug = true
|
|||
[profile.dev]
|
||||
opt-level = 1
|
||||
[profile.dev.package."*"]
|
||||
opt-level = 3
|
||||
opt-level = 3
|
||||
[profile.bench]
|
||||
codegen-units = 1
|
||||
lto = "fat"
|
||||
|
|
|
@ -95,7 +95,7 @@ pub fn parse(input: Vec<u8>) -> nexrad_data::result::Result<Scan> {
|
|||
let mut vcp = None;
|
||||
let mut radials = vec![];
|
||||
if record.compressed() {
|
||||
*record = record.decompress()?;
|
||||
*record = record.decompress()?; // this specifically seems to be most problematic. bzip is SLOW
|
||||
}
|
||||
let messages = record.messages()?;
|
||||
|
||||
|
@ -129,6 +129,7 @@ pub fn parse(input: Vec<u8>) -> nexrad_data::result::Result<Scan> {
|
|||
})
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn into_radial(
|
||||
message: nexrad_decode::messages::digital_radar_data::Message,
|
||||
) -> nexrad_data::result::Result<Radial> {
|
||||
|
@ -164,6 +165,7 @@ fn into_radial(
|
|||
})
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
fn into_moment_data(block: GenericDataBlock) -> MomentData {
|
||||
MomentData {
|
||||
scale: block.header.scale,
|
||||
|
|
Loading…
Add table
Reference in a new issue