nickna / Neighborly

An open-source vector database
MIT License
9 stars 2 forks source link

Optimize Vector Serialization #3

Closed nickna closed 4 weeks ago

nickna commented 1 month ago

Description:

Enhance the performance of vector serialization to improve data transfer speeds and reduce latency. In the ToBinary and FromBinary methods of Vector, we're using Buffer.BlockCopy to convert between byte[] and float. This could potentially be made more efficient by using unsafe code to cast the byte[] directly to float[], although this would make code less portable.

Tasks:

Resources:

Impact:

Optimized serialization will improve the overall performance of Neighborly, especially when handling large volumes of vector data.

How to Contribute:

  1. Fork the repository and create a new branch for your changes.
  2. Implement and test the optimized serialization methods.
  3. Ensure all new and existing tests pass.
  4. Submit a pull request with a detailed description of the changes and performance improvements observed.
nickna commented 4 weeks ago

Vector serialization is feature complete.