Hacker News new | ask | show | jobs
by drittich 1023 days ago
And if you just have tens of thousands, straight up SQL can work pretty well, too.
1 comments

If you have tens of thousands, a `for` loop over an array in memory is plenty fast.

I've worked on a project that searched through 50 million vectors with linear brute-force search, just with a sprinkle of AVX (and it used the brute-force search, because the curse of dimensionality killed all the smarter approaches).