Summary:
HNSWlib includes hardware-optimized distance functions for various CPU instruction sets (SSE, AVX).
Our current configuration only uses the SSE version.
This diff allows to use AVX implementation to leverage more advanced CPU capabilities and significantly improve vector index performance.
Perf comparison using VectorIndexPerfTest.Perf2048Dims:
master: 6.8s
this diff: 3.6s
Jira: DB-18046
Test Plan: Jenkins
Reviewers: arybochkin
Reviewed By: arybochkin
Subscribers: ybase
Tags: #jenkins-ready
Differential Revision: https://phorge.dev.yugabyte.com/D46269