I\'ve been working on this general allocation algorithm for students. The pseudocode for it (a Python implementation) is:
suppose I need to allocate and delete object on heap frequently (of arbitrary size), is there any performance benefit if instead of deleting those objects, I will return it back to some \"pool\" to be
In Windows, for very demandingapplications, a programmer may use HeapCreate, HeapAlloc in order to better manage and control the allocation of memory- speed it开发者_如何学Go up (aka private allocator
I want to allocate memory on the stack. Heard of _alloca / alloca and I understand that these are compiler-specific stuff, which I don\'t like.
My task consists of two parts. First I have to create globbal char array of 100 elements, and insert some text to it using cin. Afterwards calculate amount of chars, and create dedicated array with th
I have been given the task of re-writing some libraries written in C# so that there are no allocations once startup is completed.
I want to insert n elements into a map where n is known ahead of time. I do not want memory allocation at each insertion. I want all memory allocation at the beginning. Is there a way to do this? If s
I have a code that need to be \"translated\" from C to Cpp, and i cant understand, where\'s a problem. There is the part, where it crashes (windows critical error send/dontSend):
I have a MS-Visual Studio 2005 workspace having all c code. This application(exe) allocates memory dynamically from heap using malloc and realloc. I want to calculate the maximum size allocated size a
I\'m overriding the new operator to manually allocate heap space when using the new keyword. Usually using a stack-allocated heap container with pointers to its items-