memory-allocators
memory-allocators copied to clipboard
Custom memory allocators in C++ to improve the performance of dynamic memory allocation
I assume that the project has been abandoned since a some pull requests are pending. Anyways, I will address a few things here for those coming to this repository in...
 look at this picture above plz...we know that the type of "rest ", "data.blockSize" and "requiredSize" is std::size_t. However, std::size_t is unsigned __int64. So they are unsigned. if you...
Addressed #8 where calling Free on the StackAllocator would access garbage in the `AllocationHeader` While I was there I made the points declarations more consistent with the codebase and specified...
1. when allocate memory: if rest < sizeof(Node), it should not insert to free list. 2. when free memory: if free list head is nullptr, we should set head ptr....
# Compilation Error When compiling with Clang on Xcode, I get the following error ``` ../src/StackAllocator.cpp:39:39: error: non-constant-expression cannot be narrowed from type 'std::size_t' (aka 'unsigned long') to 'char' in...
Getting some build errors, screenshot attached. Environment: Win10, VS 2017 
i'm not sure. alloc/free is important for Performance. is virutal function make a deal
Hi mtrebi, Thanks for the modification of making it running on Windows first. However I found places that confuse me a lot in FreeListAllocator. First, is it a must that...
Shouldn't the `smallestDiff` be updated along with the `bestBlock` in here? `if (it->data.blockSize >= requiredSpace && (it->data.blockSize - requiredSpace < smallestDiff)) {` `bestBlock = it;` ` }` `smallestDiff = it->data.blockSize`...
show how to use this lib