Use an experimental feature to avoid copying 64k in memory

This commit is contained in:
Clément Renault
2024-07-03 17:51:53 +02:00
parent fd8c90b858
commit deee22b5da
4 changed files with 9 additions and 152 deletions

View File

@@ -374,7 +374,7 @@ impl Index {
&self,
rtxn: &'t RoTxn,
) -> heed::Result<Option<DecoderDictionary<'t>>> {
self.document_compression_raw_dictionary(rtxn).map(|opt| opt.map(DecoderDictionary::copy))
self.document_compression_raw_dictionary(rtxn).map(|opt| opt.map(DecoderDictionary::new))
}
pub fn document_compression_dictionary(