Skip to content

v2: SciPy Distances 3-200x Faster

Choose a tag to compare

@ashvardanian ashvardanian released this 05 Oct 06:33
· 3123 commits to main since this release

The second release of SimSIMD introduces several enhancements, including design optimizations in both SIMD-accelerated implementations and high-level wrappers.

  • The Python interface has been refined to closely resemble the spatial.distance module from SciPy.
  • The newly included Python Linux wheels leverage OpenMP for parallelization, boosting performance.
  • Enhanced flexibility: all distance functions can now handle arrays of arbitrary lengths.
  • Arm capabilities introspection has been transitioned to Assembly for improved efficiency.

The result: you can now replace scipy.spatial.distance.cosine, scipy.spatial.distance.sqeuclidean, numpy.inner, as well as scipy.spatial.distance.cdist with the 3-200x faster SIMD-accelerated SimSIMD 🥳.