Skip to content

Commit

Permalink
Never inline map value deserialization
Browse files Browse the repository at this point in the history
Inlining it means that the deserialization of basic datatypes is inlined
into all deserialization functions, leading to a significant overhead.
  • Loading branch information
robin-nitrokey committed Oct 7, 2024
1 parent 6e243dd commit 6b3ce69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ impl<'a, 'b: 'a> serde::de::MapAccess<'b> for MapAccess<'a, 'b> {
}
}

#[inline(never)]
fn next_value_seed<V>(&mut self, seed: V) -> Result<V::Value>
where
V: de::DeserializeSeed<'b>,
Expand Down

0 comments on commit 6b3ce69

Please sign in to comment.