The memory-usage tag has no wiki summary.
3
votes
2answers
71 views
Object identification in Python
In learning Python, I found that when two "names" (or "variables") are assigned to the same value, both of them point to the same memory address. For example
>>> a = 10
>>> b = 10
...
2
votes
2answers
225 views
Understanding how variable assignment works
When I started learning C programming a few years ago, my tutor taught me similar to most of the tutors around the world. She said me the very basic things like any int datatype is of 2 bytes memory. ...
0
votes
1answer
75 views
How to avoid Memory Error
I am working with quite large files (pytables) and I am having problems with the Memory Error when I try to load the data for processing.
I would like some tips about how to avoid this in my python ...
0
votes
2answers
242 views
Why is it called a memory leak?
I am a hobbyist programmer, bit of a stickler for terminology, currently learning C and recently came across the concept of Memory Leak. Now, I do understand what it means. Dynamic memory allocated to ...
1
vote
1answer
181 views
Are there theoretical reasons why arrays in C take less RAM than Java?
My experience is that Java requires about twice as much RAM compared to C (comparing char arrays or other comparisons). I also read in a hardware book that Java takes about twice RAM than C. Is is ...
-1
votes
1answer
83 views
Recursion VS memory allocation [duplicate]
Which approach is most popular in real-world examples: recursion or iteration?
For example, simple tree preorder traversal with recursion:
void preorderTraversal( Node root ){
if( root == null ) ...
0
votes
2answers
85 views
Delphi 7 using RAM for database
I have an existing database app written in D7 with apollo databases.
The client has given me a fast desktop with 24gb ram
Can I somehow load the database files into ram to speed up processing?
With ...
0
votes
2answers
115 views
Is it fine to reuse a class instance?
I ask in terms of high cost classes, with a particle engine as an example.
I read somewhere that an instance of a class with a high cost to initialize, like a particle manager, should have its state ...
-1
votes
1answer
112 views
How do memory-clean apps work? [closed]
In terms of operating system architecture, what does a memory-clean software to get rid of all data that fill the virtual memory? I assume that it simply saves all RAM data into a file, but how does ...
3
votes
2answers
140 views
What use is a non-zeroing weak reference?
When reading about the various options for working with things like ARC / GC, I often come across explicit wording about which weak references are zeroing (ie, your reference becomes nil/null/0 when ...
1
vote
1answer
611 views
how much memory should android app use [closed]
We are planning to develop an android application. the application will use API and data transfer will be via SSL.
I should write documentation and set functional and system requirements for the ...
0
votes
1answer
108 views
Multiple Instantiate of 1 class affects memory?
I am currently struggling with memory handling. I have an if statement and each case instantiate a new object from a class. Does this affect the memory allocation in java?
switch()
{
case 1:
test t1 ...
0
votes
1answer
311 views
Comparing performance of different C++ self-made tree data structures
I have two tree data-structures that I made in C++ , and they give a response for range queries/point queries in that program. I am using Ubuntu. I need help in understanding the way to compare the ...
1
vote
2answers
458 views
Static vs. dynamic memory allocation - lots of constant objects, only small part of them used at runtime
Here are two options:
Option 1:
enum QuizCategory {
CATEGORY_1(new MyCollection<Question>()
.add(Question.QUESTION_A)
.add(Question.QUESTION_B)
...
1
vote
3answers
169 views
Please help me understand the relationship between script file size and memory usage?
I am programming in PHP and I have an include file that I have to, well, include, as part of my script. The include file is 400 MB, and it contains an array of objects which are nothing more than ...
7
votes
4answers
7k views
What is the point of using lists over vectors, in C++?
I've run 3 different experiments involving C++ lists and vectors.
Those with vectors proved more efficient, even when a lot of insertions in the middle were involved.
Hence the question: in which ...
0
votes
3answers
942 views
Instruction vs data cache usage
Say I've got a cache memory where instruction and data have different cache memories ("Harvard architecture"). Which cache, instruction or data, is used most often? I mean "most often" as in time, not ...
7
votes
1answer
3k views
How can I improve my application's memory use?
I am writing a C# application, and can see the memory usage increasing as the running time of the application increases.
Are there any tools or techniques I could monitor my application's memory ...
0
votes
4answers
127 views
Acceptable memory usage as a function of input size
I know that if a computation takes linear or linearithmic time based on the size of the input, that's good, and if it takes quadratic time, then that's not so good.
However, what about memory usage? ...
3
votes
1answer
497 views
What makes an application memory bandwidth bound?
This has been something that's been bothering me for a while: What makes an application memory bandwidth bound?
For example, take this monstrosity of a computer that calculated the 5 trillionth ...