From 02f468afb717b0fb2cd4355e611beee9df1c287e Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Thu, 19 Dec 2024 11:33:58 +0100 Subject: [PATCH] Remove span that is called too many times --- crates/milli/src/update/new/extract/documents/mod.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/crates/milli/src/update/new/extract/documents/mod.rs b/crates/milli/src/update/new/extract/documents/mod.rs index b375503b4..5c1abcb89 100644 --- a/crates/milli/src/update/new/extract/documents/mod.rs +++ b/crates/milli/src/update/new/extract/documents/mod.rs @@ -153,10 +153,6 @@ impl<'a, 'b, 'extractor> Extractor<'extractor> for DocumentsExtractor<'a, 'b> { match document_extractor_data.documents_compressor.as_mut() { Some(compressor) => { - let span = - tracing::trace_span!(target: "indexing::documents", "compress"); - let _entered = span.enter(); - let doc = CompressedObkvU16::with_compressor(content, compressor)?; self.document_sender .write_compressed(docid, external_docid, &doc) @@ -192,10 +188,6 @@ impl<'a, 'b, 'extractor> Extractor<'extractor> for DocumentsExtractor<'a, 'b> { document_extractor_data.docids_delta.insert_add_u32(docid); match document_extractor_data.documents_compressor.as_mut() { Some(compressor) => { - let span = - tracing::trace_span!(target: "indexing::documents", "compress"); - let _entered = span.enter(); - let doc = CompressedObkvU16::with_compressor(content, compressor)?; self.document_sender .write_compressed(docid, external_docid, &doc)