Better use deserialize_unchecked_from to reduce the deserialization time

This commit is contained in:
Kerollmops
2023-05-30 14:49:32 +02:00
parent fdb23132d4
commit da04edff8c
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ impl heed::BytesDecode<'_> for RoaringBitmapCodec {
type DItem = RoaringBitmap;
fn bytes_decode(bytes: &[u8]) -> Option<Self::DItem> {
RoaringBitmap::deserialize_from(bytes).ok()
RoaringBitmap::deserialize_unchecked_from(bytes).ok()
}
}