Move the rayon thread pool outside the extract method

This commit is contained in:
Clément Renault
2024-11-14 10:40:32 +01:00
parent 0e3c5d91ab
commit 9e8367f1e6
10 changed files with 328 additions and 291 deletions

View File

@ -1,10 +1,12 @@
use std::{fs::File, io::BufWriter};
use std::fs::File;
use std::io::BufWriter;
use fst::{Set, SetBuilder, Streamer};
use memmap2::Mmap;
use tempfile::tempfile;
use crate::{update::del_add::DelAdd, InternalError, Result};
use crate::update::del_add::DelAdd;
use crate::{InternalError, Result};
pub struct FstMergerBuilder<'a> {
stream: Option<fst::set::Stream<'a>>,