lanterndata / lantern

PostgreSQL vector database extension for building AI applications
https://lantern.dev
Other
746 stars 53 forks source link

Use proper palloc-based memory allocator in usearch #147

Open Ngalstyan4 opened 1 year ago

Ngalstyan4 commented 1 year ago

Currently usearch code uses the default allocator (malloc-based) We should use palloc to make sure all memory is manged through postgres We can do that by adding a field to usearch_init that will take a custom allocation function and will build a custom default allocator on it in usearch code

broccoliSpicy commented 5 months ago

usearch PR