From 9e302d7dbe5f8468d10363d534a8f243b0a224ae Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 19 Jan 2021 10:45:41 +0100 Subject: [PATCH] Fix ef value for insertion Searches --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index d6b4599..d5df2af 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -214,6 +214,7 @@ where let mut batch = Vec::new(); let mut done = Vec::new(); let mut insertion = Search::default(); + insertion.ef = ef_construction; let max_batch_len = num_cpus::get() * 4; for (layer, mut range) in ranges { let num = if layer.0 > 0 { M } else { M * 2 };