Unnecessary Optimization in Rust: Hamming Distances, SIMD, and Auto-Vectorization

from blog Evan Schwartz, | ↗ original
If you're developing an application and find yourself running a benchmark whose results are measured in nanoseconds... you should probably stop and get back to more important tasks. But here we are. I'm using binary vector embeddings to build Scour, a service that scours noisy feeds for content related to your interests. Scour uses the Hamming...