dynamic-memory-allocation
Can i allocate memory faster by using multiple threads?
If i make a loop that reserves 1kb integer arrays, int[1024], and i want it to allocate 10000 arrays, can i make it faster by running the memory allocations from multiple threads?[详细]
2023-03-03 16:43 分类:问答.net Fast Memory Allocation
In my application there are some cases that relatively small objects, (max 50 bytes) e.g. message classes for logging purposes, must be created and freed (by GC) frequently during the execution of the[详细]
2023-02-25 16:14 分类:问答Dynamically allocating a float matrix?
I开发者_开发技巧s there any way how to malloc() a 2D matrix in C? I have successfully tried malloc()ing a 1D field, but in matrix I am getting errors.[详细]
2023-02-22 17:33 分类:问答MemoryMappedFiles: How much memory can be allocated for files
I\'m having large CT rawdata files which can exceed the size of 20 to 30GB maximum. For most of our current computers in the department we have only 3GB maximum. But for processing the data we need to[详细]
2023-02-21 04:11 分类:问答Why is deleted memory unable to be reused
I am using C++ on Windows 7 with MSVC 9.0, and have also been able to test and reproduce on Windows XP SP3 with MSVC 9.0.[详细]
2023-02-19 23:48 分类:问答How does C/C++ know how long a dynamic allocated array is
This question has been bothering me for a while. If I do int* a = new int[n], for example, I only have an pointer that points to the beginning of array a, but how does C/C++ know about n? I know开发[详细]
2023-02-16 07:38 分类:问答Dynamically allocated list in C++
I made a cute generic (i.e. template) List class to handle lists in C++. The reason for that is that I found the std::list class terribly ugly for everyday use and since I constantly use lists, I need[详细]
2023-02-16 05:53 分类:问答Why can't I call a parameterized constructor with new in c++?
If you know the issue, Assume I have a class A whose CTOR receives an integer; I cannot do the following :[详细]
2023-02-12 05:11 分类:问答Problem allocating derived class array with new
I have a simple program $ cat a.cpp #include <iostream> class MyClass { public: virtual void check() {[详细]
2023-02-10 13:44 分类:问答C++ performance: checking a block of memory for having specific values in specific cells
I\'m doing a research on 2D Bin Packing algorithms. I\'ve asked similar question regarding PHP\'s performance - it was too slow to pack - and now the code is converted to C++.[详细]
2023-02-10 08:42 分类:问答
加载中,请稍侯......