Top "Garbage-collection" questions

Garbage collection (GC) is a form of automatic memory management which attempts to reclaim garbage, or memory occupied by objects that are no longer in use by the program.

What's the best way (most efficient) to turn all the keys of an object to lower case?

I've come up with function keysToLowerCase (obj) { var keys = Object.keys(obj); var n = keys.length; while (n--) { var key = …

javascript performance node.js object garbage-collection
HttpWebRequest times out on second call

Why does the following code Timeout the second (and subsequent) time it is run? The code hangs at: using (Stream …

c# http garbage-collection httpwebrequest webrequest
What's so wrong about using GC.Collect()?

Although I do understand the serious implications of playing with this function (or at least that's what I think), I …

.net performance memory-management garbage-collection
Does setting Java objects to null do anything anymore?

I was browsing some old books and found a copy of "Practical Java" by Peter Hagger. In the performance section, …

java garbage-collection performance
Java very large heap sizes

Does anyone have experience with using very large heaps, 12 GB or higher in Java? Does the GC make the program …

java performance garbage-collection heap
MemoryStream.Close() or MemoryStream.Dispose()

Which one do I call? Is it necessary to call both? Will the other throw an exception if I have …

c# .net garbage-collection
How does the new automatic reference counting mechanism work?

Can someone briefly explain to me how ARC works? I know it's different from Garbage Collection, but I was just …

objective-c cocoa-touch garbage-collection automatic-ref-counting
Forcing garbage collection in Google Chrome

We are developing a single-page web app with ZK which constantly communicates with server and updates parts of its screens. …

javascript google-chrome garbage-collection zk
Java G1 garbage collection in production

Since Java 7 is going to use the new G1 garbage collection by default is Java going to be able to …

java garbage-collection java-7 g1gc
Understanding garbage collection in .NET

Consider the below code: public class Class1 { public static int c; ~Class1() { c++; } } public class Class2 { public static void Main() { { …

c# .net garbage-collection