X Tutup
The Wayback Machine - https://web.archive.org/web/20201114081907/https://github.com/simdjson/simdjson/issues/1017
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

Accept custom memory allocators (std::allocator) #1017

Open
lemire opened this issue Jul 1, 2020 · 0 comments
Open

Accept custom memory allocators (std::allocator) #1017

lemire opened this issue Jul 1, 2020 · 0 comments
Milestone

Comments

@lemire
Copy link
Member

@lemire lemire commented Jul 1, 2020

This is related to #94

The idea is that we do very few memory allocations as it is, but we could, optionally, allow the user to provide use with a memory allocator instance from which we would ask the memory.

Possibly, this could only be supported for C++17 compilers because the change in std::allocator between C++17 and pre-C++17 is rather major. Supporting the old API in addition to the new one would be unpleasant work. Of course, the feature could be extended to C++11 later, especially if there are willing programmers.

This is a relatively easy feature to add. We don't do allocations all over the place. We may have 4 or 5 memory allocations in the whole library.

cc @KubaO @TkTech

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.
X Tutup