nickna / Neighborly

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

perf: Improve search index building #57

Closed hangy closed 1 week ago

hangy commented 2 weeks ago

## 📝 Description

Tries to speed up node building by eliminating some .ToList() calls, and tries to fix some unit tests.

🔗 Related Issues

Nada

💡 Additional Notes

For the future: Building the tree still loads all vectors into memory, which might cause issues with larger amounts of data, especially if #33 gets implement, and more than int.MaxValue vectors can be stored in the db.