-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allocators: Introduce allocator infrastructure
The allocator infrastructure is intented to be used for fast and optionally deduplicated object storage. The current infra supports the following allocators - linear: simple linear allocator storing objects in sequence - malloc: Uses malloc to store each object. Inefficient but interfaces best with ASAN or valgrind in order to find bugs. - mremap: Uses mmaped/mremaped arenas. Best for performance. Each of the above can be paired with a dedup allocator which stores objects only once. Finally - auto: An auto allocator selecting what best for a given scenario. Note that these are tuned for handling frees on a tag granularity and not per object. If you need per object freeing you're better off with the standard malloc() allocator. Signed-off-by: Pantelis Antoniou <[email protected]>
- Loading branch information
Showing
15 changed files
with
5,012 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.