Skip to content

Commit 618a449

Browse files
committed
remove custom allocator for assemble
1 parent ee0168d commit 618a449

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

bindings/cpp/src/dynamic_vamana_index_impl.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -451,18 +451,12 @@ class DynamicVamanaIndexImpl {
451451

452452
svs::DistanceDispatcher distance_dispatcher(to_svs_distance(metric));
453453

454-
// Create allocator with custom block size for data loading
455-
auto parameters =
456-
svs::data::BlockingParameters{.blocksize_bytes = svs::lib::PowerOfTwo(26)};
457-
auto allocator = svs::data::Blocked<svs::lib::Allocator<std::byte>>{parameters};
458-
459454
return distance_dispatcher([&](auto&& distance) {
460455
return new svs::DynamicVamana(
461456
svs::DynamicVamana::assemble<float, storage::StorageType_t<Tag>>(
462457
stream,
463458
std::forward<decltype(distance)>(distance),
464-
std::move(threadpool),
465-
allocator
459+
std::move(threadpool)
466460
)
467461
);
468462
});

0 commit comments

Comments
 (0)