Skip to content
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

Use proper palloc-based memory allocator in usearch #147

Open
Ngalstyan4 opened this issue Sep 16, 2023 · 1 comment
Open

Use proper palloc-based memory allocator in usearch #147

Ngalstyan4 opened this issue Sep 16, 2023 · 1 comment
Labels
core Core Database

Comments

@Ngalstyan4
Copy link
Contributor

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

@Ngalstyan4 Ngalstyan4 changed the title Write a custom palloc-based memory allocator and pass it to usearch Use proper palloc-based memory allocator in usearch Sep 16, 2023
@Ngalstyan4 Ngalstyan4 added the core Core Database label Sep 16, 2023
@broccoliSpicy
Copy link
Contributor

broccoliSpicy commented Apr 12, 2024

usearch PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core Database
Projects
None yet
Development

No branches or pull requests

2 participants