Posts tagged 'garbage-collection'
Changing Your Garbage Collector Settings on the Fly
Here is a nice article series posted by Ricket Minerich on his blog. The Garbage Collector is one of those things that I tend to get very passionate about (I guess it must just be esoteric internals or something). I thought Rick did a very good job explaining the various modes you can use with the GC...
Continue reading "Changing Your Garbage Collector Settings on the Fly"
Class v. Struct
Memory usage and leaks in a managed world often come from unexpected places. Allocating classes or structs is a confusing subject to newcomers to Dot Net. Multiple objects = new class When you see many many variables that are grouped together in usage your first thought usually is, I should make this...
Continue reading "Class v. Struct"
To Collect or not to Collect
One of the first things it seems most people do when they get the code to VistaDB is remove the GC.Collect() call we have in the MinimizeMemory code for the Tree class. This class specifically is used to hold portions of the database, indexes, etc in RAM. Periodically it is combed to attempt and minimize...
Continue reading "To Collect or not to Collect"
The GC does not solve all memory leaks
Using statements and memory leaks to databases This question was recently asked in the forum and I see it so often in code samples sent in by users that I thought I would take a little time to discuss using statements and how they help solve memory leaks with database code. I remember when I first started...
Continue reading "The GC does not solve all memory leaks"
