-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing pointer semantics to std::unique_ptr #58
Conversation
Just throw away my previous pull request. This is much cleaner and less hassle and does exactly what it claims to do ... :) |
Thank you @polterguy for this PR! I'll be taking a closer look soon. One thing I want to call out: memory when writing to a vss0 table (either inserting or deleting) gets a little wonky. Write only happen on a
All to say: Any This is mostly due to the limitations of Faiss's But in general, yeah |
Tracking in #59 |
Taking advantage of deterministic destruction
@polterguy let me know when you'd like me to review this! |
Thx, give me a couple of more days, I'm still trying to wrap my head around SQLite C/++ API ... :/ |
No problem, let me know if you need any help with any parts of that. In general, small quick PRs > larger more encompassing changes, so even if you just wanna merge a few |
You OK if I apply some consistent coding standard, and some slightly longer variable names? I'll be a bit "dramatic", but I'll try to keep the spirit of the library ... |
Longer variable names and improved coding standards would be fine! Once this PR is merged I'll most likely go back and update a few things, including adding |
Just letting you know I haven't flunked on you. Creating a PR tomorrow. I've 100% perfectly stabilised memory usage, plugged some 10 to 20 leaks, apprx. 98% of the leaks are gone in my code base now, and code is higher quality, better naming conventions, and coding std (used clan-format) ... |
@polterguy Appreciate it! |
Changed all occurrences of
vector<float> *
tostd::unique_ptr<vector<float>>
to avoid memory leaks.