Remove hardcoded buffer size

Co-Authored-By: Thomas Campistron <irevoire@hotmail.fr>
This commit is contained in:
Mubelotix
2025-08-05 10:41:28 +02:00
parent 43c20bb3ed
commit 84651ffd7d

View File

@ -819,7 +819,7 @@ impl IndexScheduler {
rtxn: &rtxn,
index_scheduler: self,
tasks: &mut updated.into_iter(),
buffer: Vec::with_capacity(800), // on average a task is around ~600 bytes
buffer: Vec::with_capacity(page_size::get()),
written: 0,
};