allocation
Allocation algorithm help, using Python
I\'ve been working on this general allocation algorithm for students. The pseudocode for it (a Python implementation) is:[详细]
2023-01-01 18:30 分类:问答Recycle Freed Objects
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[详细]
2023-01-01 15:47 分类:问答HeapCreate, HeapAlloc in Linux, private allocator for Linux
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[详细]
2022-12-31 09:26 分类:问答Dynamic stack allocation in C++
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.[详细]
2022-12-30 23:24 分类:问答dynamically created arrays
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[详细]
2022-12-28 11:25 分类:问答.NET DB Query Without Allocations?
I have been given the task of re-writing some libraries written in C# so that there are no allocations once startup is completed.[详细]
2022-12-26 03:17 分类:问答Memory Allocation for a Map with a fixed number of insertions
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[详细]
2022-12-25 00:53 分类:问答Memory allocation problem C/Cpp Windows critical error
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):[详细]
2022-12-24 16:39 分类:问答Any tool to find size of memory allocated dynamically using malloc/realloc?
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[详细]
2022-12-21 16:52 分类:问答Do I have to allocate everything on the heap (that gets stored within) heap containers?
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-[详细]
2022-12-18 03:17 分类:问答
加载中,请稍侯......