In computer science, garbage collection (GC) is a form of automatic memory management. The garbage collector, or just collector, attempts to reclaim garbage, or memory occupied by objects that are no longer in use by the program.

learn more… | top users | synonyms

4
votes
3answers
331 views

How do I avoid over-using the garbage collector?

I'm wondering what the best way of initializing variables so that I don't over use the garbage collector with a for-loop. Assuming the variable is only used inside ...
2
votes
2answers
600 views

Gridview shuttering when scrolling

I have more than 1000 items in my GridView. When scrolling though, it appears to make the app 'shutter'. Each time I load images from Picasso GC, it increases. ...
5
votes
2answers
86 views

Optimizing garbage collection for local objects

I am trying to make a 3D application with OpenGL/LWJGL at the moment, but I am now already hitting some limits on the JVM, most likely due to a configuration that needs to be done. I have the ...
3
votes
1answer
193 views

Linked List in Java (Garbage Collection)

So I'm implementing a linked list in Java, and so far it looks like this: ...
0
votes
2answers
438 views

Correct way of using HBRUSHes..?

If I create a brush like so HBRUSH hBrush = CreateSolidBrush(RGB(33, 33, 33)); and then later on, I want to change the color of the brush, how would I do this? I ...
3
votes
4answers
865 views

Improve C# code efficiency by leveraging dot net framework

I have written following code to find the minimum difference from a list of numbers. Because I am using a loop once and LINQ again to find the minimum, the algorithm is O(N^2). Can you please tell ...
2
votes
1answer
1k views

Backbone.js: Will this code get cleaned up by the garbage collector

I have been working on a Backbone.js application, and I am starting to think I am making a huge mistake. I never fully understand garbage collecting, and how exactly some closures prevent it. I just ...