Fix ef value for insertion Searches

This commit is contained in:
Dirkjan Ochtman 2021-01-19 10:45:41 +01:00
parent 4c7caaf436
commit 9e302d7dbe
1 changed files with 1 additions and 0 deletions

View File

@ -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 };