further optimization
Some checks are pending
Verify Latest Dependencies / Verify Latest Dependencies (push) Waiting to run
build and test / wxbox - latest (push) Waiting to run

This commit is contained in:
core 2025-05-19 10:32:19 -04:00
parent 1c836c6ecf
commit fe4a47d6cc
2 changed files with 7 additions and 2 deletions

View file

@ -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"

View file

@ -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,