Questions tagged [memory-usage]
The memory-usage tag has no summary.
103 questions
16 votes
6 answers
10k views
Unstable output C++: running the same thing twice gives different output
So, the problem: When I run the same C++ code in Visual Studio, with the same input and parameters, I get either the correct output, or an output that is completely messed up (99% of values go to zero)...
6 votes
2 answers
2k views
How to get out of a memory usage problem of a .NET application?
As mentioned in some StackOverflow posts (like this one), I'm dealing with a difficult situation: My company is developing some C# applications (being a client-server application). We have migrated ...
-1 votes
1 answer
242 views
Better way to represent grammar symbols in C
I'm trying to build a simple compiler for a subset of the C language in C. To achieve this, I needed to figure out a way to represent the grammar symbols. Basically, each symbol can either be a "...
3 votes
1 answer
104 views
Should small overhead count towards an upper memory bound or rather be ignored?
I have a memory pool class that manages memory objects of fixed sizes, a bit like a primitive malloc() that can only return memory blocks of a few predefined sizes and unlike malloc() is guaranteed to ...
8 votes
1 answer
702 views
Temporal logic as a programming language paradigm?
So I'm aware there's some degree of timing-based logic in existing programming languages, like threads and the sleep() function (and derivatives thereof), as well as events / delegates. However, I was ...
-4 votes
1 answer
106 views
Using only the Cache not the DRAM in a Program (USB to Ethernet) [closed]
I am reading some data from USB, do some packet processing and then send the result to the Ethernet port. The USB ports are connected to an onboard USB Hub where it communicates with the ...
1 vote
2 answers
397 views
How to create objects and allocate data only once in C++ to improve speed with octave .oct files?
I have been coding some octave .oct files lately (C++), and for my purposes speed is of the essence. It seems to me that creating C++ objects (in general) can take some time. I was wondering if ...
-2 votes
1 answer
1k views
In C++ and GCC on Linux, is it possible to allocate memory to your swap space instead of your RAM?
I have a large hash, around 6 gigabytes that I load into memory. On my current laptop that I develop from, it really does a number on my system, causing massive amounts of lag while I try to go about ...