Skip to content

Commit aa21e23

Browse files
committed
remove todos
1 parent 6443294 commit aa21e23

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/VecSim/spaces/IP_space.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ dist_func_t<float> IP_UINT8_GetDistFunc(size_t dim, unsigned char *alignment,
262262

263263
dist_func_t<float> ret_dist_func = UINT8_InnerProduct;
264264
// Optimizations assume at least 32 uint8. If we have less, we use the naive implementation.
265-
if (dim < 32) { // TODO: revalidate the optimization threshold
265+
if (dim < 32) {
266266
return ret_dist_func;
267267
}
268268
#ifdef CPU_FEATURES_ARCH_X86_64
@@ -289,7 +289,7 @@ dist_func_t<float> Cosine_UINT8_GetDistFunc(size_t dim, unsigned char *alignment
289289

290290
dist_func_t<float> ret_dist_func = UINT8_Cosine;
291291
// Optimizations assume at least 32 uint8. If we have less, we use the naive implementation.
292-
if (dim < 32) { // TODO: revalidate the optimization threshold
292+
if (dim < 32) {
293293
return ret_dist_func;
294294
}
295295
#ifdef CPU_FEATURES_ARCH_X86_64

src/VecSim/spaces/L2_space.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ dist_func_t<float> L2_UINT8_GetDistFunc(size_t dim, unsigned char *alignment,
225225

226226
dist_func_t<float> ret_dist_func = UINT8_L2Sqr;
227227
// Optimizations assume at least 32 uint8. If we have less, we use the naive implementation.
228-
if (dim < 32) { // TODO: revalidate the optimization threshold
228+
if (dim < 32) {
229229
return ret_dist_func;
230230
}
231231
#ifdef CPU_FEATURES_ARCH_X86_64

0 commit comments

Comments
 (0)